0

When I run it is now saying I am missing input variable for student name, course name, and grade information.

https://code.sololearn.com/cObxFTsxr8R6/?ref=app I tried entering input() where I thought it needed it but it does not seem to be working.

26th May 2020, 11:34 PM
Peyson
 Peyson  - avatar
6 odpowiedzi
+ 4
You can use an f string. #Output print(f"Hi {student_name}, You have a {grade} in your {course_name} course.")
26th May 2020, 11:43 PM
ChaoticDawg
ChaoticDawg - avatar
+ 2
Just use the variable, no surrounding "input()" call needed https://code.sololearn.com/c3Y6GosjLks8/?ref=app you'll see it needs some spaces...
26th May 2020, 11:38 PM
Slick
Slick - avatar
+ 2
Oh, well you already have the variable names you want. Set them equal to input() and that will prompt user to enter a string. ex: a_variable = input() Then you can call the variable when you print Multiple inputs like yours need to be entered all at once in sololearn though
26th May 2020, 11:46 PM
Slick
Slick - avatar
+ 2
Its good practice to declare what the input should be, it defaults to string. So try: grade = float(input())
26th May 2020, 11:53 PM
Slick
Slick - avatar
0
your code makes way more sense. its not accepting it the way you are doing it. maybe my professor wants it with an input() command
26th May 2020, 11:43 PM
Peyson
 Peyson  - avatar
0
I seem to be inputting the calculation for the grade wrong. Do you know how to fix that?
26th May 2020, 11:50 PM
Peyson
 Peyson  - avatar