top of page

PYTHON CHALLENGES

Anchor 1

Welcome to Python Challenges

Please find both help and challenges to help you become a better programmer.

 

.....................................................................................................................................................................................................................

SKYWALKER 1 (RECRUIT)

In your user area create a folder called "Python Skills"

.....................................................................................................................................................................................................................

SKYWALKER 2 (RECRUIT)- MISSION: "HELLO"

Mary needs a program to:

a) Store who coded/made the program (but doesnt show it when the program is run)

b) Output "Hello Everyone"

c) Save it as program "Skywalker2" in Python

d) Check it works (F5)

GUIDE: Use a comment, 2 lines of code and 1 output

HELP: Use Help A1 & C1 > go and get help

.....................................................................................................................................................................................................................

SKYWALKER 3 (RECRUIT)- MISSION: "HELLO & HOW ARE YOU"

Mary needs more lines of code to add onto the program called Skywalker2:

a) On line 3 Output "How are you? "

b) On line 4 Output "What are you doing tomorrow? "

c) Save it as program "Skywalker3" in Python

d) Check it works (F5)

GUIDE: Add 2 more lines of code

HELP: Use Help A1 & C1 > go and get help

EVIDENCE: Show teacher the code

.....................................................................................................................................................................................................................

SKYWALKER 4 (PILOT)- MISSION: "HELLO! WHATS YOUR NAME?"

Jasmine needs a NEW program (new Python Idle file) that does the following:

a) Stores who coded/made the program (but doesnt show it when the program is run)

b) When run the code asks the user for their name and stores the result in a variable called "name"

c) Outputs the message "Hello" and then adds the variable name when run

d) Save it as program "Skywalker4" in Python

e) Check it works (F5)

GUIDE: Add no more than 3 more lines of code a

HELP: Use Help A1 & D1 & C2 > go and get help

 

....................................................................................................................................................................................................................

SKYWALKER 5 (PILOT) - MISSION: "CALCULATOR"

Cecil a NEW program (new Python Idle file) that does the following:

a) Stores who coded/made the program (but doesn't show it when the program is run)

b) Allows for 3 different numbers to be entered separately

c) The program calculates them 

d) Outputs the message "Your total is" and then shows the total score

e) Save it as program "Skywalker5" in Python

f) Check it works (F5)

GUIDE: Your need 4 variables

HELP: Use Help A1 & B4 & B1 > go and get help

....................................................................................................................................................................................................................

 

SKYWALKER 6 (PILOT) - MISSION: "NAME AND AGE"

Jemma needs a NEW program (new Python Idle file) that does the following:

a) Stores who coded/made the program (but doesn't show it when the program is run)

b) Ask for their name and stores the result in a variable

c) Asks for their age and stores the result in a variable

d) Outputs when run the name and age of the person

e) Save it as program "Skywalker6" in Python

f) Check it works (F5)

GUIDE: Your need 2 variables

HELP: Use Help A1 & B4 & B1 > go and get help

...................................................................................................................................................................................................................

SKYWALKER 7 (PILOT) - MISSION: "CALCULATOR"

Cecil needs a NEW program (new Python Idle file) that does the following:

a) Stores who coded/made the program (but doesn't show it when the program is run)

b) Asks the user for the distance (in metres)

c) Asks the user for the time in seconds that a journey was completed in.

d) Calculates and outputs the average speed using a function.

e) Save it as program "Skywalker7" in Python

f) Check it works (F5)

GUIDE: Tip: Speed = Distance / Time

HELP: Use Help A1 & B4 & B1 > go and get help

Anchor 2
Anchor 4
Anchor 3
bottom of page