Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- site=0
- line=0
- for i in range(3):
- s=str(input())
- people=int(input())
- if s=="online":
- line+=people
- else:
- site+=people
- if site > 600:
- line+=(site-600)
- site=600
- print("Online students: "+ str(line))
- print("Onsite students: " + str(site))
- print("Total students: "+ str(line+site))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement