Skip to content

Instantly share code, notes, and snippets.

Avatar
😀
I may be slow to respond.

SangHyeop 10150042

😀
I may be slow to respond.
  • Republic of Korea
View GitHub Profile
@10150042
10150042 / Rolling_the_dices.py
Last active Sep 14, 2018
Rolling_the_dices
View Rolling_the_dices.py
import random
min = 1
max = 6
roll_again = "yes"
while roll_again == "yes" or roll_again == "y" :
print("Rolling the dices...")
print("The values are...")
print(random.randint(min,max))
View Guessing_game2.py
import random
number = random.randint(1,99)
guesses = 0
while guesses < 5:
guess = int(input("Enter an integer from 1 to 99 : "))
print()
guesses += 1
print("this is your " +str(guesses) + " guess")
View Guessing_game.py
import random
random_number = random.randint(1,99)
print("Random number is 1 to 99")
number = int(input('Gussing number: '))
while random_number != number :
print()
if number > random_number:
print("Number is High")