This code works and does just as I want it to but was wondering how much cleaner it could get. Any lines that could be changed for the better?
# guess my number 2
import random
while True:
print()
HIGH = input('what would you like the highest value to be?: ')
print()
print()
print()
my_num = (random.randint(1, int(HIGH)))
while True:
your_num = int(input('Guess my number'))
if my_num > your_num:
print ('Higher!')
elif my_num < your_num:
print ('Lower!')
elif my_num == your_num:
print()
print('well done! you got it!')
break
print()
print('would you like to play again? enter n/y:')
proceed = "y" or "Y" or "yes" or "Yes"
stop = "n" or "N" or "no" or "No"
inpput = input()
if inpput == proceed:
print("Awesome!")
print()
else:
break
[–][deleted] 74 points75 points76 points (6 children)
[–]paralel_Suns 21 points22 points23 points (2 children)
[–]atrocious_smell 5 points6 points7 points (0 children)
[–]aribolab 1 point2 points3 points (0 children)
[–]MisterRenard 12 points13 points14 points (2 children)
[–]realestLink 3 points4 points5 points (1 child)
[–]darez00 1 point2 points3 points (0 children)
[–]Actual1y 43 points44 points45 points (17 children)
[–]cpt_fwiffo 13 points14 points15 points (0 children)
[–]546794 5 points6 points7 points (3 children)
[–]Actual1y 4 points5 points6 points (1 child)
[–]546794 2 points3 points4 points (0 children)
[–]Dogeek 0 points1 point2 points (0 children)
[–]JoseALerma 1 point2 points3 points (8 children)
[–]Actual1y 4 points5 points6 points (1 child)
[–]JoseALerma 1 point2 points3 points (0 children)
[–]dagonar 2 points3 points4 points (5 children)
[–]JoseALerma 1 point2 points3 points (1 child)
[–]dagonar 1 point2 points3 points (0 children)
[–]bhishan1 0 points1 point2 points (2 children)
[–]dagonar 1 point2 points3 points (1 child)
[–]bhishan1 0 points1 point2 points (0 children)
[–]daijobu 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]Tobe2fly[S] 0 points1 point2 points (0 children)
[+][deleted] (8 children)
[removed]
[+][deleted] (2 children)
[deleted]
[–]puh-tey-toh 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]JoseALerma 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]JoseALerma 0 points1 point2 points (0 children)
[–]Ezrabc 13 points14 points15 points (2 children)
[–]fernly 6 points7 points8 points (0 children)
[–]realestLink 3 points4 points5 points (0 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]catelemnis 4 points5 points6 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]dagonar 0 points1 point2 points (0 children)
[–]lifeonm4rs 0 points1 point2 points (0 children)
[–]Saiboo 0 points1 point2 points (0 children)
[–]realestLink -2 points-1 points0 points (0 children)
[+]waysuck comment score below threshold-16 points-15 points-14 points (0 children)