0% found this document useful (0 votes)
2 views

Python Challenges +7+ 10

The document outlines a series of Python programming challenges that involve user input and conditional outputs based on specific criteria. Challenges include asking users about their TV watching habits, converting marks to grades, identifying Olympic values, and creating a rock-paper-scissors game against the computer. Each challenge emphasizes the use of selection and variables in programming.

Uploaded by

labeko56
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python Challenges +7+ 10

The document outlines a series of Python programming challenges that involve user input and conditional outputs based on specific criteria. Challenges include asking users about their TV watching habits, converting marks to grades, identifying Olympic values, and creating a rock-paper-scissors game against the computer. Each challenge emphasizes the use of selection and variables in programming.

Uploaded by

labeko56
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Python

Challenge 7
Challenge 7 You will need to
Write a program that: use:
• asks the user how long on average Selection
they spend watching TV each day
• if it is less than 2 hours, outputs
‘That shouldn’t rot your brain too
Variables
much’; if it is less than 4 hours per
day, outputs ‘Aren’t you getting
square eyes?’; otherwise outputs
‘Fresh air beats channel flicking’

Difficulty:
© ZigZag Education,
2
Python
Challenge 7
Challenge 7 Answer

Difficulty:
© ZigZag Education,
2
Python
Challenge 8
Challenge 8 You will need to
Write a program that: use:
• converts and outputs marks into Selection
grades, using the following data:

Greater than or equal to 75 A Variables


Greater than or equal to 60 B
Greater than or equal to 35 C
Less than 35 D

Difficulty:
© ZigZag Education,
2
Python
Challenge 8
Challenge 8 Answer

Difficulty:
© ZigZag Education,
2
Python
Challenge 9
Challenge 9 You will need to
Write a program that: use:
• asks the user to name one of the Selection
Olympic Values (Respect, Excellence
and Friendship)
• if they correctly name one, output
Variables
'That’s correct‘, otherwise output 'Try
again'

Difficulty:
© ZigZag Education,
3
Python
Challenge 9
Challenge 9 Answer

Difficulty:
© ZigZag Education,
3
Python 1
Challenge 0
Challenge 10 You will need to
Write a game that: use:
• allows the user to play rock, paper, Selection
scissors against the computer
• must display the computer’s choice
and show the result of the game
Variables

Tip: The computer’s answer must be random.

Difficulty:
© ZigZag Education,
3
Python
10
Challenge
Challenge 10 Answer

Difficulty:
© ZigZag Education,
3

You might also like