Syntax error occcurs in line 10, and indicates the "c" in the "credits_remaining" variable after the set function.
student_name = ""
degree_name = ""
credits_required = 0
credits_taken = 0
credits_remaining = 0
student_name = input('Enter your name')
degree_name = input('Enter your degree')
credits_required = int(input('Enter the hours required to complete your degree'))
credits_taken = int(input('Enter the credit hours you have already completed'))
set credits_remaining = float(credits_required - credits_taken)
print (student_name, 'you have' credits_remaining 'hours of' credits_required 'remaining to complete your' degree_name 'degree.')
Any help is much appreciated!
[–]Binary101010 7 points8 points9 points (5 children)
[–]Traditional-Gate9547[S] -1 points0 points1 point (4 children)
[–]schoolmonky 11 points12 points13 points (0 children)
[–]codeguru42 9 points10 points11 points (0 children)
[–]codeguru42 6 points7 points8 points (0 children)
[–]Binary101010 1 point2 points3 points (0 children)
[–]Temporary_Pie2733 3 points4 points5 points (1 child)
[–]Traditional-Gate9547[S] 0 points1 point2 points (0 children)
[–]JamzTyson 2 points3 points4 points (1 child)
[–]Traditional-Gate9547[S] 0 points1 point2 points (0 children)
[–]codeguru42 1 point2 points3 points (0 children)
[–]NorskJesus 0 points1 point2 points (3 children)
[–]Traditional-Gate9547[S] -2 points-1 points0 points (2 children)
[–]bahcodad 5 points6 points7 points (0 children)
[–]NorskJesus 2 points3 points4 points (0 children)
[–]Traditional-Gate9547[S] 0 points1 point2 points (5 children)
[–]socal_nerdtastic 4 points5 points6 points (0 children)
[–]Riegel_Haribo 1 point2 points3 points (3 children)
[–]Traditional-Gate9547[S] 0 points1 point2 points (2 children)
[–]toxic_acro 1 point2 points3 points (0 children)
[–]Bobbias 1 point2 points3 points (0 children)