From daf4949fe2e7e981587d1a55e0e2cc30a089ebea Mon Sep 17 00:00:00 2001 From: devdom <84544217+devdom1701@users.noreply.github.com> Date: Tue, 19 Dec 2023 08:48:50 -0500 Subject: [PATCH] Uploaded old files --- 311.py | 31 +++++++++++++++++++++++++++++++ Testing.py | 1 + conditionals.py | 30 ++++++++++++++++++++++++++++++ functions.py | 42 ++++++++++++++++++++++++++++++++++++++++++ larry.py | 14 ++++++++++++++ randonint.py | 35 +++++++++++++++++++++++++++++++++++ strings.py | 29 +++++++++++++++++++++++++++++ 7 files changed, 182 insertions(+) create mode 100644 311.py create mode 100644 Testing.py create mode 100644 conditionals.py create mode 100644 functions.py create mode 100644 larry.py create mode 100644 randonint.py create mode 100644 strings.py diff --git a/311.py b/311.py new file mode 100644 index 0000000..17d8a57 --- /dev/null +++ b/311.py @@ -0,0 +1,31 @@ +''' +a=8675309 +print(int(float(3.14159))) +print(str(a),type(a)) +print(bool(1)) +print(bool(0)) +print(float(10)) +''' +q1 = input("Whats ur fav numbr") +print("Ok, i dont liek that number but u respondedd with... " + q1) + +if q1 == "Bruh": + print("I dont accept Bruh as a answer Nerd. ") +else: + q2 = input("Do a dance move ") + print("jk just kidding bro.... you respondedd with " + q2) + +# name = input("Whats your name?") +# print("Hello, " + name) + +# number = input("Whats your favortie number") +# print(int(number)) + +# if int(number) > 4: +# print("Wow thats a big Number bro") +# elif int(number) == 4: +# print("Wow i love that number too") +# else: +# print("Whow, that number Sucks.") + + diff --git a/Testing.py b/Testing.py new file mode 100644 index 0000000..b507f1b --- /dev/null +++ b/Testing.py @@ -0,0 +1 @@ +print("I am coding in python!!!!") # yoe mama lmfao diff --git a/conditionals.py b/conditionals.py new file mode 100644 index 0000000..e8cc2cd --- /dev/null +++ b/conditionals.py @@ -0,0 +1,30 @@ +def good_walking_conditions(temp,cloud): + if temp == "Hot" and cloud == "Clear": + print("not going outside") + elif temp == "Temperate" and cloud == "Cloudy": + print("not going outside") + elif temp == "Cold" and cloud == "Cloudy": + print("not going outside") + elif temp == "Cold" and cloud == "Partially Cloudy": + print("nuh uh, we aint goin outside") + else: + print("WE GOIN OUTSIDE GUYS!!!!!!!!!!!!!") + +temp = input("hejj input a temperature in farenheight pleas ") + +if temp.isnumeric() == False: + print("Bro you gotta type in NUMBERS ONLY!!!!") + quit() + +if int(temp) < 40: + temp = "Cold" +elif int(temp) in range(40,80): + temp = "Temperate" +elif int(temp) > 80: + temp = "Hot" + +print("You've Chosen..." + temp) + +cloud = input("Ok now input a cloudness. choose ONLY from Clear, Cloudy, and Partially Cloudy. (this is a CaSE SeNsItIvE question)") + +good_walking_conditions(temp,cloud) \ No newline at end of file diff --git a/functions.py b/functions.py new file mode 100644 index 0000000..93c0628 --- /dev/null +++ b/functions.py @@ -0,0 +1,42 @@ +import random + +name = input("What is your name ") +if name.isalpha() == False: + print("Boyooo u gotta enter text") + quit() + +def helloworld(): + print("HelloWorld") + +def helloname(name): + print("Hello " + name) + +helloworld() +helloname(name) + +low = input("Giev me 1 number") +high = input("Give me second numbr") + +if low.isalpha() or high.isalpha() == True: + print("Bozo stop entering text for stuff thats supposed to be number values thanks.") + quit() +elif low > high: + print("your first number has to be smaller than the second.") + quit() + +def printrandnum(low,high): + print(random.randint(int(low),int(high))) +printrandnum(low,high) + +radius = input("Give me a radius") +if radius.isalpha() == True: + print("Please input integer inputs.") + quit() +elif int(radius) < 0: + print("Bro negative numbers aint allowed") + quit() + +def printcircumference(radius): + print("the circuference of your circle is... ") + print((int(radius) * 2 * 3.14)) +printcircumference(radius) diff --git a/larry.py b/larry.py new file mode 100644 index 0000000..842d933 --- /dev/null +++ b/larry.py @@ -0,0 +1,14 @@ +name = input("Whats ur name brotha ") +if name == "Larry": + print("I dont like people named larry.") +else: + print("Hi " + name) + +bruh = input("give me a number that i can multiply by 7") +print(int(bruh) * 7) + +ice = input("Whats a polar bears most appreciated song?") +if ice == "ice ice baby": + print("Correct, Nerd.") +else: + print("The riddle What's a polar bear's most appreciated song? has a clever and humorous answer: Ice Ice Baby. This play on words combines the chilly environment of the polar bear's habitat with the famous rap song Ice Ice Baby by Vanilla Ice. While the answer may seem lighthearted and amusing, it also reflects the creative and pun-driven nature of riddles. Polar bears are iconic symbols of the Arctic, where they navigate vast expanses of ice in search of food. The connection between the bear and ice is immediate, making the answer to the riddle both witty and fitting. The choice of the song adds an extra layer of humor, as Ice Ice Baby became a pop culture sensation in the early 1990s. Humor often relies on wordplay and unexpected connections, and this riddle is a prime example. It encourages the audience to think beyond the literal interpretation and appreciate the clever pairing of the polar bear's habitat with a well-known song title. Riddles like these showcase the human ability to find amusement in the unexpected and draw connections between seemingly unrelated concepts. In conclusion, the riddle What's a polar bear's most appreciated song? Ice Ice Baby is a delightful example of wordplay and humor. It cleverly combines the cold environment of the polar bear with a popular song title, inviting laughter and appreciation for the unexpected connections that make riddles both enjoyable and intellectually stimulating.") diff --git a/randonint.py b/randonint.py new file mode 100644 index 0000000..2c22c7d --- /dev/null +++ b/randonint.py @@ -0,0 +1,35 @@ +import random + +a = input("Hejj Blud give me a number. ") +if a.isnumeric() == False: + print("Yoooe gonna shut down now cuzz your input (ISNT A NUMBER!!!!!)") + quit() + +b = random.randint(0,int(a)) +c = input("Yooo whats the randomized number??? ") + +if int(c) == b: + print("You guessed correctly~") +elif int(c) > b: + print("Guess a lower number, try again next time!") +elif int(c) < b: + print("Guess a higher number, bro you got it wrong pls try again.") + +numfirstinput = input("Oki gimme a anotha numbah ") +if numfirstinput.isnumeric() == False: + print("Yoooe gonna shut down now cuzz your input (ISNT A NUMBER!!!!!)") + quit() +for i in range(0,int(numfirstinput)): + print(i) + +num2 = input("Oki gimme another number") +if num2.isnumeric() == False: + print("Yoooe gonna shut down now cuzz your input (ISNT A NUMBER!!!!!)") + quit() + +if int(num2) % 2 > 0: + print("Yoe numbaa odd") +else: + print("yoe numbaaa even") + + diff --git a/strings.py b/strings.py new file mode 100644 index 0000000..bcb6ae2 --- /dev/null +++ b/strings.py @@ -0,0 +1,29 @@ +a = input("Input a String Nerd ") +if len(a) > 8: + print("Bruh Print Up To 8 Characters") +elif len(a) < 8: + print("Bruh Print Up To Eight Characters") +else: + print(str(len(a))) + print(a.upper()) + print(a.lower()) + print(a[0]) + print(a[len(a)-1]) + if a.lower() == True: + print(a.replace("h", "j")) + else: + print(a.replace("H","J")) + + print(str(a[2:8])) + print(str(a[0:3])) + print(str(a[4:8])) + + for i in a: + print(i) + +b = input("Input a SECOND String Nerddddd") +print(str(a) + str(b)) +if str(a) in str(b): + print("True Bro the Strings are the same") +else: + print("Nahh Bro the strings aint the same")