New course! Every coder should learn Generative AI!
Try a free lesson+ 1
Why there is a wrong???!!!
https://www.sololearn.com/coach/41?ref=app number=int(input()) if number <5: print("I got this!") elif number <10: print("help me batman") elif number >10: print("Good luck out there")
23 Answers
+ 3
What about the input is 10?
+ 4
Ahmed Khalaf ,
we can not see your code. if we use your link, we can only see our own codes.
> please put your code in playground, save it there, create a link from it and post this link here.
+ 2
Ahmed Khalaf -- What if number==10?
+ 1
Ahmed Khalaf ,
(My opinion.) You post too many short messages. It's a discussion read by many people, not a one-on-one chat. Think about what people suggested, and apply it before you reply. Otherwise, it gets cluttered fast, and any final resolution will be buried and made hard to find by anyone else with a problem similar to yours who reads it.
+ 1
Go check solution there
https://sololearn.com/compiler-playground/c1fulH5nB7Ee/?ref=app
0
h or H?
0
H I mean
0
OK Lothar
0
I think you don't get it......
"help" or "Help" is required?
0
I changed it
0
May be
0
Wait
0
Sorry it didn't work 😔
0
That is another.
L or l?
0
I just solved a Code Coach in Sololearn's course! Learn to code with me 🚀https://sololearn.onelink.me/s4ie/codecoach
Eureka thanks 😊 Wong Hei Ming
0
OK 👍 but the problem has solved 3 hours ago but thank you
0
Ahmed Khalaf ,
OK. There's another polite thing you can do too. When it's solved, add [Solved] to the title, so people who help know they don't need to open it. Just 'cause you're done with it doesn't mean it disappears, and people log in and out 24 hours a day.
0
Run this command in python
Import random
H =random.randint(1, 10)
print("guess the number 1 to 10")
Guess = None
while guess!= H:
Guess = int(input('your guess: '))
If guess >= H:
print("too high")
If guess <= H:
print("too low")
Print("congratulations you won")
0
Dharmraj Maurya ,
Disable auto-correct. It's capitalizing things that should be lowercase, such as import, h, guess, if, and print.