+ 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 )

7th Jul 2025, 5:39 PM
Vernon Lobeko
Vernon Lobeko - avatar
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.
7th Jul 2025, 6:34 PM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
7th Jul 2025, 6:38 PM
Lothar
Lothar - avatar
+ 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.
8th Jul 2025, 2:26 AM
BroFar
BroFar - avatar
+ 3
Do you know what >= means? If so why would you use that here?
7th Jul 2025, 5:54 PM
Zvi
Zvi - avatar
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.
9th Jul 2025, 3:26 AM
ANURAG SHAHIB
ANURAG SHAHIB - avatar
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.
9th Jul 2025, 2:57 PM
Rajan Jain
Rajan Jain - avatar
0
it worked for me i gave it 3 and 5 and it gave me False
9th Jul 2025, 3:33 PM
Fateme Biglari
Fateme Biglari - avatar