I Haz Codes

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Menu
Tutor group check

A students wants to create a program which will display the total points for their tutor group. She has created a prototype below.
She wants to ensure that the tutorGroup typed in is correct. This means
– Turning it into lowercase.
– Making sure it is no more than 3 characters long.

Add these two extra features to the program.

tutorGroup = input("Enter the tutor group -")
if tutorGroup == "8a":
	print ("1000 points")
if tutorGroup == "8n":
	print ("983 points")
if tutorGroup == "8t":
	print ("900 points")
if tutorGroup == "8s":
	print ("910 points")
if tutorGroup == "8m":
	print ("944 points")

Comments are closed.

Information