Files
secondary-school-archive/School-Work-1-Bronze/main.py
T

25 lines
854 B
Python

import time
print("-=+ TASK 1 +=-")
studentName = input("Enter your name\n> ")
scoreOne = int(input("Enter your first score\n> "))
scoreTwo = int(input("Enter your second score\n> "))
scoreThree = int(input("Enter your third score\n> "))
beforeDiv = scoreOne+scoreTwo+scoreThree
finalScore = beforeDiv / 3
print(f'NAME: {studentName}\nSCORE: {round(finalScore, 2)}')
print("-=+ TASK 2 +=-")
nameOne = input("Enter the name of the first person\n> ")
nameTwo = input("Enter the name of the second person\n> ")
foodOne = int(input("How much did person 1 spend on food?\n£"))
foodTwo = int(input("How much did person 2 spend on food?\n£"))
drinksOne = int(input("How much did person 1 spend on drinks?\n£"))
drinksTwo = int(input("How much did person 2 spend on drinks?\n£"))
total = foodOne+foodTwo+drinksOne+drinksTwo
print(total/2)
time.sleep(5)