asked 10.3k views
1 vote
What is the output:

seconds = 70
if seconds >=60:
print "30"
else:
print "60"

asked
User HKumar
by
8.4k points

1 Answer

5 votes

Final answer:

The given code is written in Python and assigns the value 70 to the variable 'seconds'. It will print '30' if seconds is greater than or equal to 60, and '60' otherwise.

Step-by-step explanation:

The given code is written in Python programming language. It assigns the value 70 to the variable seconds. If the value of seconds is greater than or equal to 60, it prints the string "30". Otherwise, it prints the string "60".

answered
User Tom Larkworthy
by
9.0k points

No related questions found