Watch the video and have a go at creating different print and inputs
Challenges
Have a go at completing all the challenges from the Challenges worksheet - I have also included a cheat sheet to give some guidance.
Python Cheat Sheet (file same as below)
print(‘hello world’) – prints data out to the screen
name = input(“What’s your name”) – Asks the user for input and stores it in a named variable
name.title() Converts the user input into title case (adds a capital letter to the start of each word)
, (comma) – separates items in a print with a space
+(plus) – combines two items in a print without a space
\t – Adds a tab to a string of text
\n – Adds a new line to a string of text
import os – imports the os module, so you can use the os.system(‘clear’) to clear the screen
os.system(‘clear’) – clear’s the screen
import time – imports the time module, so you can use the sleep function
time.sleep(1) – gets the program to wait for a second in between lines of code.
Use the Python console to edit / make your own program