Python level up Python problem | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Python level up Python problem

The given code fragment for a video game checks if the player is ready for the next level. Only players with a score greater than 100 can move to the next level.   Task Complete the code to display True when the score is greater than 100 and False otherwise Help me on this one

8th Sep 2023, 3:09 PM
Geani Epuran
18 Answers
+ 1
Geani Epuran Code: Score=input() (to take the score) If score > 100: (to check the score) Print(True) Else: Print(False) edit:this won't work in playground this will score=int(input()) if score > 100: print("True") else: print("False")
10th Sep 2023, 2:16 PM
ZIZO Abd alkawy
+ 7
ZIZO Abd alkawy , maybe you you want to check your code for errors? (8 issues in 5 lines of code)
10th Sep 2023, 6:08 PM
Lothar
Lothar - avatar
+ 6
Geani Epuran , please show us your code attempt. put your code in playground, save it and create a link to it. then post the link to your code here.
8th Sep 2023, 5:24 PM
Lothar
Lothar - avatar
+ 3
Try it by yourself! I’m sure you can complete it
8th Sep 2023, 3:12 PM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 2
Print(score>100) dosent work ^ p Look at the uppercase
10th Sep 2023, 9:56 AM
Ugulberto Sánchez
Ugulberto Sánchez - avatar
+ 1
Thanks guys for your help D: thanks to you, I stopped learning programming and started learning Spanish 🤗
9th Sep 2023, 1:13 PM
Geani Epuran
+ 1
Well the answer is: print(score > 100) If you still want it
10th Sep 2023, 8:25 AM
Christos fiotakis
Christos fiotakis - avatar
+ 1
Bro the answer is print(100 >= score) or if score >= 100: print(True) else: print(False)
10th Sep 2023, 11:49 AM
Christos fiotakis
Christos fiotakis - avatar
+ 1
If it requires input, add a score = int(input()) above the print And please repeat the python course
10th Sep 2023, 11:53 AM
Christos fiotakis
Christos fiotakis - avatar
+ 1
Lothar I noticed now
12th Sep 2023, 8:28 PM
ZIZO Abd alkawy
0
Print(score>100) dosent work
10th Sep 2023, 9:51 AM
Geani Epuran
0
the interesting thing is that nobody knows the answer and can't help me
10th Sep 2023, 11:47 AM
Geani Epuran
0
Variable score is not defineted is saying
10th Sep 2023, 11:52 AM
Geani Epuran
0
Jesus you are the god :) thanks man
10th Sep 2023, 11:55 AM
Geani Epuran
0
No problem
10th Sep 2023, 11:56 AM
Christos fiotakis
Christos fiotakis - avatar
0
Score =100 Print (Score)
6th Jan 2024, 9:53 AM
Eyerusalem Eyu
Eyerusalem Eyu - avatar
0
score = int(input()) print(score > 100)
4th Feb 2024, 6:24 AM
Kudiwanaye Mushandu
Kudiwanaye Mushandu - avatar
0
# The program takes the score as an input score = int(input()) # Add the comparison operation inside the parentheses print(score > 100)
21st Apr 2024, 10:00 AM
Sara Zarei
Sara Zarei - avatar