Intro to Python — Lesson 1

Veröffentlicht am: 10 August 2020
auf dem Kanal: KPMG:Code
3,467
35

In this session we cover:
An overview of the course
Background on programming and Python
Write our first "Hello World" script
Variables and data types
Mathematical operators
String concatenation

Next Lesson:    • Intro to Python — Lesson 2  
Playlist for whole course:    • Introduction to Python  
Course Material: https://github.com/ihf-code/python

Questions:
Section A
1. Write code that prints ‘Hello world’.
2. Print the numbers 1 to 5 on a single line.
3. Write a script where ‘Hello’ and ‘World’ are printed on two separate lines.
4. Write a script that prints a list of names, tabbed on separate lines, e.g.
My List of Names:
Alice
Bob
Charlie

Section B
1. Write code that prints the value of 2 + 2.
2. Write code that prints the value of 5.7 subtracted from 3.4.
3. Write code that prints the value of 8 multiplied by 7.
4. Write code that prints the value of 144 divided by 12.
5. Write code that prints the value of the remainder of 67 divided by 12.
6. Write code that finds the value of 20 from `4 - 2 * 6 / 3 * 5`. Hint: you might need brackets.

Answers:
Answers to these questions available:    • Intro to Python — Lesson 1 — Answers  


Auf dieser Seite können Sie das Online-Video Intro to Python — Lesson 1 mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer KPMG:Code 10 August 2020 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,467 Mal angesehen und es wurde von 35 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!