diff --git a/stuff/GOOFY/height.py.zst b/stuff/GOOFY/height.py.zst new file mode 100755 index 0000000..f3ae97f Binary files /dev/null and b/stuff/GOOFY/height.py.zst differ diff --git a/stuff/hi-buddy/main.py b/stuff/hi-buddy/main.py new file mode 100644 index 0000000..b77a6e0 --- /dev/null +++ b/stuff/hi-buddy/main.py @@ -0,0 +1,3 @@ +#!/usr/bin/python3 + + diff --git a/stuff/hi2 b/stuff/hi2 new file mode 100644 index 0000000..0687bec --- /dev/null +++ b/stuff/hi2 @@ -0,0 +1,4 @@ +#!/usr/bin/python3 + +while True: + print("hi") diff --git a/stuff/img/Screenshot_2022-09-02_11-38-23.png.zst b/stuff/img/Screenshot_2022-09-02_11-38-23.png.zst new file mode 100644 index 0000000..60b14d2 Binary files /dev/null and b/stuff/img/Screenshot_2022-09-02_11-38-23.png.zst differ diff --git a/stuff/img/Screenshot_2022-09-02_11-39-07.png.zst b/stuff/img/Screenshot_2022-09-02_11-39-07.png.zst new file mode 100644 index 0000000..df68f79 Binary files /dev/null and b/stuff/img/Screenshot_2022-09-02_11-39-07.png.zst differ diff --git a/stuff/img/Screenshot_2022-09-02_11-39-27.png.zst b/stuff/img/Screenshot_2022-09-02_11-39-27.png.zst new file mode 100644 index 0000000..d03826b Binary files /dev/null and b/stuff/img/Screenshot_2022-09-02_11-39-27.png.zst differ diff --git a/stuff/img/Screenshot_2022-09-02_11-40-00.png.zst b/stuff/img/Screenshot_2022-09-02_11-40-00.png.zst new file mode 100644 index 0000000..a227192 Binary files /dev/null and b/stuff/img/Screenshot_2022-09-02_11-40-00.png.zst differ diff --git a/stuff/img/Screenshot_2022-09-02_11-40-55.png.zst b/stuff/img/Screenshot_2022-09-02_11-40-55.png.zst new file mode 100644 index 0000000..752f366 Binary files /dev/null and b/stuff/img/Screenshot_2022-09-02_11-40-55.png.zst differ diff --git a/stuff/infinite-loop b/stuff/infinite-loop new file mode 100644 index 0000000..7e2b28c --- /dev/null +++ b/stuff/infinite-loop @@ -0,0 +1,2 @@ +while True: + print("hi") diff --git a/stuff/loops/num1.py b/stuff/loops/num1.py new file mode 100644 index 0000000..5b2618a --- /dev/null +++ b/stuff/loops/num1.py @@ -0,0 +1,2 @@ +for i in range (11): + print(i, end=" ") diff --git a/stuff/loops/num10.py b/stuff/loops/num10.py new file mode 100644 index 0000000..37b3b0f --- /dev/null +++ b/stuff/loops/num10.py @@ -0,0 +1,3 @@ +num = int(input("Enter a number: ")) + +print(str(num)[::-1]) diff --git a/stuff/loops/num2.py b/stuff/loops/num2.py new file mode 100644 index 0000000..fd53948 --- /dev/null +++ b/stuff/loops/num2.py @@ -0,0 +1,4 @@ +n = int(input("Enter a number: ")) + +b = sum(range(1, n+1)) +print(b) diff --git a/stuff/loops/num3.py b/stuff/loops/num3.py new file mode 100644 index 0000000..3533e10 --- /dev/null +++ b/stuff/loops/num3.py @@ -0,0 +1,5 @@ +a = int(input("Enter a number: ")) +c = 1 +while (c <= 10): + print(a * c) + c += 1 diff --git a/stuff/loops/num4.py b/stuff/loops/num4.py new file mode 100644 index 0000000..7ee46bf --- /dev/null +++ b/stuff/loops/num4.py @@ -0,0 +1,7 @@ +a = int(input("Enter a number: ")) +b = a * 5 +c = b % 2 +if (c != 0): + print("Not divisible by 5") +else: + print("Divisible by 5") diff --git a/stuff/loops/num5.py b/stuff/loops/num5.py new file mode 100644 index 0000000..ba1809d --- /dev/null +++ b/stuff/loops/num5.py @@ -0,0 +1,7 @@ +a = int(input("Enter a number: ")) +count = 0 + +while (a > 0): + count = count + 1 + a = a // 10 +print(count) diff --git a/stuff/loops/num6.py b/stuff/loops/num6.py new file mode 100644 index 0000000..2b36bb9 --- /dev/null +++ b/stuff/loops/num6.py @@ -0,0 +1,2 @@ +for i in range(-10,0): + print(i, end=" ") diff --git a/stuff/loops/num7.py b/stuff/loops/num7.py new file mode 100644 index 0000000..25f3ad3 --- /dev/null +++ b/stuff/loops/num7.py @@ -0,0 +1,9 @@ +tg = int(input("Enter a number: ")) + +for number in range(1,tg+1): + if number > 1: + for i in range(2, number): + if (number%i) == 0: + break + else: + print(number) diff --git a/stuff/loops/num8.py b/stuff/loops/num8.py new file mode 100644 index 0000000..e1688d5 --- /dev/null +++ b/stuff/loops/num8.py @@ -0,0 +1,11 @@ +a = 100 + +n1, n2 = 0, 1 +count = 0 + +while count < a: + print(n1) + nth = n1 + n2 + n1 = n2 + n2 = nth + count += 1 diff --git a/stuff/loops/num9.py b/stuff/loops/num9.py new file mode 100644 index 0000000..410bd91 --- /dev/null +++ b/stuff/loops/num9.py @@ -0,0 +1,5 @@ +import math + +a = int(input("Enter a number: ")) +b = math.factorial(a) +print(b) diff --git a/stuff/mad-libs/COPYING.zst b/stuff/mad-libs/COPYING.zst new file mode 100644 index 0000000..bcc721b Binary files /dev/null and b/stuff/mad-libs/COPYING.zst differ diff --git a/stuff/mad-libs/README.zst b/stuff/mad-libs/README.zst new file mode 100644 index 0000000..4d18f24 Binary files /dev/null and b/stuff/mad-libs/README.zst differ diff --git a/stuff/mad-libs/main.py.zst b/stuff/mad-libs/main.py.zst new file mode 100755 index 0000000..8b8a089 Binary files /dev/null and b/stuff/mad-libs/main.py.zst differ diff --git a/stuff/terry-davis/main b/stuff/terry-davis/main new file mode 100644 index 0000000..4497c28 --- /dev/null +++ b/stuff/terry-davis/main @@ -0,0 +1,30 @@ +#!/usr/bin/env python3 + +import random +import sys + +print("(This story is based off of the video game series Risk of Rain)") +print("You are a soldier for a delivery company, dispatched to an unknown\n") +print("planet responding to a distress signal.\n") +print("\n") +print("Your escape pod barrels towards the planet, and you get out.\n") +print("\n") +print("You see a creature coming towards you, but are unsure if it is hostile.\n") +print("[ ? ] Do you leave it or attack it?\n" +print("( 1 ) Leave it\n") +print("( 2 ) Attack it\n") +a = int(input("==> ")) + if a == "1": + print("It attacks you. With only a pistol to defend yourself, you manage to fend it off, but more come.\n") + print("You are unsure of their intentions, and they eventually overpower you. You die without a trace.\n") + print("GAME OVER\n") + sys.exit(0) + elif a == "2": + print("You attack the creature. It drops money, which looks like it can open locked chests from\n") + print("the crash of a previous cargo ship. You open one, and you find a pair of sunglasses inside\n") + print("The sunglasses appear to make the wearer more powerful.\n") + print("\n") + print("You find a strange stone altar in the landscape, and you activate it.\n") + print("After a brief flash of red light, a large stone figure appears.\n") + print("\n") + print("