Created
January 6, 2019 15:05
-
-
Save laztname/b783ec4128fc4d29a349d0142673f765 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
import random | |
print("Tebak angka") | |
a = int(input("Masukan angka 1-5\n")) | |
b = random.randint(1,5) | |
if a == b: | |
print("kamu menang!") | |
elif a != b: | |
print("kamu kalah!!!, angka yang benar",b ) | |
else: | |
print("error, coba lagi") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment