+ 6
what's wrong with my code?
# Physical test score physic_test = int(input()) # Flight simulation test score flight_test = int(input()) # Combine the operations to get the final result total_score = int(physic_test) >= int (flight_test ) # Display the result on the screen print (total_score )
8 Respuestas
+ 7
Also, you've taken the input and converted it to type integer, you don't need to try to convert physic_test and flight_test to integer again.
+ 5
Vernon Lobeko ,
> is the exercise you posted one from a tutorial, or what is the source?
> if it is from sololearn, can you name the tutorial, the modul and the lesson / exercice?
> it would be great to have the original task description.
+ 4
Astronaut candidates have to undergo several tests in order to proceed in the selection process. To qualify, they need to score more than 90 points on the physical test and 85 points on the flight simulation test.
physical_test > 90
and
flight_test > 85
Task
Complete the code to check if the candidate's scores meet the qualifications. If the candidate's scores meet both qualifications, the code should output True. Otherwise, it should output False.
+ 3
Do you know what >= means?
If so why would you use that here?
0
What you exactly want to do is not understandable.
Kindly elaborate your question more.
As code work properly for that it is assign.
As it is comparison operator is return boolean it will do good in it.
If you want to print physical test scores Kindly use if elif else Statements.
0
As variable name is total_score so probably you are trying to add both the test scores and hence you need to replace >= by +.
Also no need to convert both the variables to int again during addition.
0
it worked for me i gave it 3 and 5 and it gave me False