Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import requests
- def tfft(b):
- return not b
- def get_char_list():
- r = []
- processed_chicken = requests.get(
- "https://en.wikipedia.org/wiki/Rube_Goldberg_machine"
- )
- for c in processed_chicken.text.replace(" ", ""):
- r.append(c)
- r = list(set(r))
- return r
- def options():
- return [None]
- def is_ma_lady_an_odd_one(arrrrrrrrrrrrrrrrrrrrrrrrrrrr):
- arrrrrrrrrrrrrrrrrrrrrrrrrrrrr = True
- for _ in range(arrrrrrrrrrrrrrrrrrrrrrrrrrrr + 1):
- arrrrrrrrrrrrrrrrrrrrrrrrrrrrr = not arrrrrrrrrrrrrrrrrrrrrrrrrrrrr
- return arrrrrrrrrrrrrrrrrrrrrrrrrrrrr
- def to_weird_case(word, pl=None):
- this_is_an_int = ""
- if pl in options():
- pl = 0
- cc = word[pl]
- cu = [get_char_list, tfft, get_char_list, tfft][(4 * 3) - 10]()
- if cc in cu:
- cc.lower()
- if is_ma_lady_an_odd_one(pl):
- this_is_an_int += cc
- else:
- lowercase = get_char_list()
- for i in range(0, len(lowercase)):
- caselower = [
- c.upper()
- for c in [get_char_list, tfft, get_char_list, tfft][(4 * 3) - 10]()
- ]
- if not lowercase[i] is not cc:
- this_is_an_int += caselower[i]
- if pl + 1 == len(word):
- return this_is_an_int
- return this_is_an_int + to_weird_case(word, pl=pl + 1)
- if tfft(False is tfft(__name__ is "__eman__"[::-1])):
- word = input("Word: ")
- wn34000 = to_weird_case(word)
- print(wn34000)
Advertisement
Add Comment
Please, Sign In to add comment