From 6cb8e45dcbaa29b21d27a443d3b71c18f5cc3b50 Mon Sep 17 00:00:00 2001 From: "Mr.Smith" <38669774+Sodiumhypochlorate@users.noreply.github.com> Date: Mon, 23 Apr 2018 23:13:35 +0300 Subject: [PATCH] Add files via upload I'll write a script every day to get better although I may need help at times. --- Applied.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ Concepts.py | 10 ++++++++++ timer.py | 26 ++++++++++++++++++++++++++ 3 files changed, 88 insertions(+) create mode 100644 Applied.py create mode 100644 Concepts.py create mode 100644 timer.py diff --git a/Applied.py b/Applied.py new file mode 100644 index 0000000..d9c9951 --- /dev/null +++ b/Applied.py @@ -0,0 +1,52 @@ +#Applied# +import random +print("\nWelcome to number guessing game...\n") +asd=random.randint(0,50) +ass=random.randint(0,100) +#You should'nt be looking in here...# +add=random.randint(0,500) +exe=["easy","medium","hard"] +print("These are the possible difficulties you can choose from:\n",exe,"\n") +aaa=input("Select Difficulty!\nType it in!\n ") +if aaa in exe[0]: + print("Okay!") + while True: + ent=int(input("Enter your guess!\nNumber:")) + if entasd: + print("Try a little lower bro...\n") + + else: + print("nice guess bro...\nIt was correct!") + break + + +if aaa in exe[1]: + print("Okay!") + while True: + ent=int(input("Enter your guess!\nNumber:")) + if entass: + print("Try a little lower bro...\n") + + else: + print("nice guess bro...\nIt was correct!") + break + + +if aaa in exe[2]: + print("Oh Wow, I also enjoy living life on the harderside.\n(*-*)\n") + while True: + ent=int(input("Enter your guess!\nNumber:")) + if entadd: + print("Try a little lower bro...\n") + + else: + print("nice guess bro...\nIt was correct!") + break + + diff --git a/Concepts.py b/Concepts.py new file mode 100644 index 0000000..eb5be36 --- /dev/null +++ b/Concepts.py @@ -0,0 +1,10 @@ +#Programme-1# +import random +import time +x=10 +while x>0: + apu=random.randint(0,6) + print(apu) + time.sleep(1) + x-=1 + diff --git a/timer.py b/timer.py new file mode 100644 index 0000000..e08132a --- /dev/null +++ b/timer.py @@ -0,0 +1,26 @@ +#Gay and barebones Timer.# +import time +def timre(x,y=1): + while x>=0: + time.sleep(y) + print(x," Seconds left...") + x-=1 + +#I know its misspelled btw# +def delay(X,y=1): + while x>0: + time.sleep(y) + x-=1 + +def onesec(): + time.sleep(1) + print("done") + +def rep(func,x): + def reprep(): + for i in range(x): + func() + return reprep +#don't know why but last function doesn't # +#pls help# +