Lesson 1 - Python Intro - Print and Input - Medium - Abbrev JC
Lesson 1 - Python Intro - Print and Input - Medium - Abbrev JC
Value
film = “Frozen”
print (film)
Create a Displays the
variable value of the
called film variable.
which stores a
value.
Variables
Value
Displays the
Variable called user’s answer
“name”
Displays the
Variable called user’s answer
“name”
Variable called
“name”
Extension:
Display your name, your age and your gender on 3 separate lines.
Paste your code below:
2. Create a variable called food and store your favourite food
inside the variable. Print out the value of the variable onto the
screen. YOU DO NOT NEED AN INPUT COMMAND.
Paste your code below:
Hint:
3) Ask the user for their favourite film. Display “I also like
watching”, film. Hint
Paste your code below:
4. Create a program that ask the user for their hobby, surname, favourite colour
and favourite pet. Display the above on 4 separate lines. “Remember you can’t
have space in a variable name.
Hint:
Paste your code below:
5. Create a program that ask the user for their name. Display the
name 1000 times. Use * to multiply.
Hint:
Example: