Space Python Loading Python…

Creating Lists

 
0:00 / 0:00

Challenge

Practise what this example shows with these challenges.

Readings summary

Write the codeEasy 2 stages

Summarise a list of engine readings with min(), max() and a mean from sum() / len(), then add the spread and make the summary cope with an empty list instead of crashing.

Start the challenge

Approved payloads

Write the codeEasy 2 stages

Check whether a payload ID is on the approved list with in, which matches whole items rather than parts of text, then normalise IDs typed by hand and print a clear cleared or not-cleared message.

Start the challenge

Discussion

Stuck on this example or want to go further? Ask here, or see what others asked.

Log in to ask and reply.

script.py
PythonLn 1, Col 1Spaces: 4
Loading the Python environment…

Separate arguments with commas. They're passed on every Run as sys.argv[1:].