0% found this document useful (0 votes)
2 views13 pages

Python Challenges 1+ +6

The document outlines a series of Python programming challenges that require the use of variables, sequencing, selection, and mathematical operations. Each challenge involves user input, processing data, and outputting results, with specific instructions on how to achieve the desired outcomes. Additionally, it includes tasks related to testing and evaluating the effectiveness of the programs created.

Uploaded by

labeko56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views13 pages

Python Challenges 1+ +6

The document outlines a series of Python programming challenges that require the use of variables, sequencing, selection, and mathematical operations. Each challenge involves user input, processing data, and outputting results, with specific instructions on how to achieve the desired outcomes. Additionally, it includes tasks related to testing and evaluating the effectiveness of the programs created.

Uploaded by

labeko56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Live Marking

T1 State the variables you used and describe


why they are needed
T2 Describe what sequencing is and the
inputs/outputs/processes used
T3 Explain why you used particular data types
and mathematical operators
T4 Explain what concatenation and casting
means and how you used it
T5 Explain what selection is and some logical
operators used
CT1 Discuss how you undertook testing to ensure
your program worked the way it should
CT2 Evaluate the effectiveness of your testing

CT3 Research how to use iteration and functions


in Python and explain how this was used
Python
Challenge 1
Challenge 1 You will need to
Write a program that: use:
• asks the user to input their age Sequencing
• outputs 'Your age is: ' followed by
their age
Variables

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

Tip: To calculate the average of two numbers you need


to add them together and divide them by two.

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

You might also like