Skip to content
Sign upLog in
← Back to Community

Osman Tring Python

Profile icon
OSMANashroff24

import random

number=random.randint(1,20)

guess=int(input("i am thinking of a number between 1 and 20 \nwhat is my number?"))

if number==guess:
print("Yes! well done!")
elif number==guess+1:
print("that was close")
elif number==guess-1:
print("that was close")
else:
print("no not that one but it is",number)

Voters
Profile icon
OSMANashroff24
Comments
hotnewtop
Profile icon
gregory54

Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. 꽁머니 3만

Profile icon
gregory54

When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. laundry chute spring

Profile icon
gregory54

It is an excellent blog, I have ever seen. I found all the material on this blog utmost unique and well written. And, I have decided to visit it again and again. Reise

Profile icon
gregory54

Hi there! Nice stuff, do keep me posted when you post again something like this! เว็บพนันบอล ดีที่สุด pantip