[Tutor] Python Question
Amy Davidson
amydavidson at sympatico.ca
Fri Jan 10 01:11:49 CET 2014
Hi,
I am a university student who is struggling with writing functions in Python. I’ve been attempting to write a function in Python for over 2 hours with no progress. The function must be called, printID and take a name and student number as parameter and prints them to the screen.
This is my closest guess:
def print_ID(“Amy Davidson”, 111111111)
Student = “Amy Davidson”
StudentN = 111111111
print (“StudentName:”, Student)
print (“StudentNumber:”, StudentN)
If you could help correct my work and explain, that would be great!
Thanks,
Amy Davidson
More information about the Tutor
mailing list