Code
Output
VS Code
Run
1 2 3 4 5 6 7 8 9 10 11 12
# Python 3 runs on the server, and input() really does wait for you — # type your answer straight after the question and press Enter. name = input("What is your name? ") print("Muraho,", name + "!") marks = [82, 74, 91, 68] print("average:", sum(marks) / len(marks)) for position, mark in enumerate(sorted(marks, reverse=True), start=1): print(f"{position}. {mark}")
Output
Input prepared before running (optional)
Press Run to start your program.