Skip to content

Instantly share code, notes, and snippets.

View 10150042's full-sized 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 September 14, 2018 04:52
Rolling_the_dices
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))
@10150042
10150042 / Guessing_game2.py
Created August 31, 2018 05:49
Guessing_game2
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")
@10150042
10150042 / Guessing_game.py
Created August 31, 2018 05:44
Guessing_game
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")