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.
6 odpowiedzi
+ 4
You can use an f string.
#Output
print(f"Hi {student_name}, You have a {grade} in your {course_name} course.")
+ 2
Just use the variable, no surrounding "input()" call needed
https://code.sololearn.com/c3Y6GosjLks8/?ref=app
you'll see it needs some spaces...
+ 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
+ 2
Its good practice to declare what the input should be, it defaults to string. So try:
grade = float(input())
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
0
I seem to be inputting the calculation for the grade wrong. Do you know how to fix that?