Python Challenges 1+ +6
Python Challenges 1+ +6
Difficulty:
© ZigZag Education,
1
Python
Challenge 1
Challenge 1 Answer
Difficulty:
© ZigZag Education,
1
Python
Challenge 2
Challenge 2 You will need to
Write a program that: use:
• asks the user to input two numbers Sequencing
• calculates the average
• outputs the result
Variables
Difficulty:
© ZigZag Education,
1
Python
Challenge 2
Challenge 2 Answer
Difficulty:
© ZigZag Education,
1
Python
Challenge 3
Challenge 3 You will need to
Write a program that: use:
• asks the user to input the width and Sequencing
height of a rectangle
• calculates the area
• outputs the result
Variables
Tip: Multiply the width by the height to find the area of a rectangle.
Difficulty:
© ZigZag Education,
1
Python
Challenge 3
Challenge 3 Answer
Difficulty:
© ZigZag Education,
1
Python
Challenge 4
Challenge 4 You will need to
Write a program that: use:
• asks the user to input two numbers Sequencing
• divides the first number by the
second number
• outputs the result
Variables
Difficulty:
© ZigZag Education,
1
Python
Challenge 4
Challenge 4 Answer
Difficulty:
© ZigZag Education,
1
Python
Challenge 5
Challenge 5 You will need to
Write a program that: use:
• asks the user their name Sequencing
• asks what their favourite subject is
(using their name in the question)
• responds to their answer by saying
Variables
that you like that subject as well
Difficulty:
© ZigZag Education,
1
Python
Challenge 5
Challenge 5 Answer
Difficulty:
© ZigZag Education,
1
Python
Challenge 6
Challenge 6 You will need to
Write a program that: use:
• asks the user their name Selection
• if it is the same as your name,
outputs 'You’re cool', otherwise
outputs 'Nice to meet you'
Variables
Difficulty:
© ZigZag Education,
2
Python
Challenge 6
Challenge 6 Answer
Difficulty:
© ZigZag Education,
2