Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import os
- import re
- import random
- #here you can find the lyrics: https://mega.nz/#F!TB8ExSaI!oRxkQGkiWulHyk4KVof8kw
- #the functions and other stuff writen as comments are just things I wanted to deactivade but keep in case I regret doing so
- #most of them I don't need anymore, but I don't feel like deleting them now
- bottomless_pit = {
- "Giving Bad People Good Ideas" : "lyrics/giving_bad_people_good_ideas.txt",
- "Hot Head" : "lyrics/hot_head.txt",
- "Spikes" : "lyrics/spikes.txt",
- "Warping" : "lyrics/warping.txt",
- "Eh" : "lyrics/eh.txt" ,
- "Bubbles Buried In This Jungle" : "lyrics/bubles_buried_in_this_jungle.txt" ,
- "Trash" : "lyrics/trash.txt",
- "Houdini" : "lyrics/houdini.txt" ,
- "BB Poison" : "lyrics/bb_poison.txt",
- "Three Bedrooms in a Good Neighborhood" : "lyrics/three_bedrooms_in_a_good_neighborhood.txt",
- "Ring A Bell" : "lyrics/ring_a_bell.txt" ,
- "Bottomless Pit" : "lyrics/bottomless_pit.txt"
- }
- the_money_store = {
- "Get Got" : "lyrics/get_got.txt",
- "The Fever (Aye Aye)" : "lyrics/the_fever.txt",
- "Lost Boys" : "lyrics/lost_boys.txt",
- "Blackjack" : "lyrics/blackjack.txt",
- "Hustle Bones" : "lyrics/hustle_bones.txt",
- "I've Seen Footage" : "lyrics/ive_seen_footage.txt",
- "Double Helix" : "lyrics/double_helix.txt",
- "System Blower" : "lyrics/system_blower.txt",
- "The Cage" : "lyrics/the_cage.txt",
- "Punk Weight" : "lyrics/punk_weight.txt",
- "Fuck That" : "lyrics/fuck_that.txt",
- "Bitch Please" : "lyrics/bitch_please.txt",
- "Hacker" : "lyrics/hacker.txt"
- }
- niggas_on_the_moon = {
- "Up My Sleeves" : "lyrics/up_my_sleeves.txt",
- "Billy Not Really" : "lyrics/billy_not_really.txt",
- "Black Quarterback" : "lyrics/black_quarterback.txt",
- "Say Hey Kid" : "lyrics/say_hey_kid.txt",
- "Have a Sad Cum BB" : "lyrics/have_a_sad_cum.txt",
- "Fuck Me Out" : "lyrics/fuck_me_out.txt",
- "Voila" : "lyrics/voila.txt",
- "Big Dipper" : "lyrics/big_dipper.txt"
- }
- jenny_death = {
- "I Break Mirros With My Face In The United States" : "lyrics/i_break_mirros_with_my_face_in_the_united_states.txt",
- "Inanimate Sensation" : "lyrics/inanimate_sensation.txt",
- "Turned Off" : "lyrics/turned_off.txt",
- "Why A Bitch Gotta Lie" : "lyrics/why_a_bitch_gotta_lie.txt",
- "Pss Pss" : "lyrics/pss_pss.txt",
- "The Powers That B" : "lyrics/the_powers_that_b.txt",
- "Beyond Alive" : "lyrics/beyond_alive.txt",
- "Centuries Of Damn" : "lyrics/centuries_of_damn.txt",
- "On GP" : "lyrics/on_gp.txt",
- "Death Grips 2.0" : "lyrics/death_grips_2.0.txt"
- }
- no_love_deep_web = {
- "Come Up And Get Me" : "lyrics/come_up_and_get_me.txt",
- "Lil Boy" : "lyrics/lil_boy.txt",
- "No Love" : "lyrics/no_love.txt",
- "Black Dice" : "lyrics/black_dice.txt",
- "Wolrd Of Dogs" : "lyrics/world_of_dogs.txt",
- "Lock Your Doors" : "lyrics/lock_your_doors.txt",
- "Whammy" : "lyrics/whammy.txt",
- "Hunger Games" : "lyrics/hunger_games.txt",
- "Deep Web" : "lyrics/deep_web.txt",
- "Stockton" : "lyrics/stockton.txt",
- "Pop" : "lyrics/pop.txt",
- "Bass Rattle Stars Out The Sky" : "lyrics/bass_rattle_stars_out_the_sky.txt",
- "Artificial Death In The West" : "lyrics/artificial_death_in_the_west.txt"
- }
- government_plates = {
- "You might think he loves you for your money but I know what he really loves you for it's your brand new leopard skin pillbox hat" : "lyrics/you_might_think_he_loves_you_for_your_money_but_i_know_what_he_really_loves_you_for_its_your_brand_new_leopard_skin_pillbox_hat.txt",
- "Anne Bonny" : "lyrics/anne_bonny.txt",
- "Two Heavens" : "lyrics/two_heavens.txt",
- "This Is Violence Now (Don't Get Me Wrong)" : "lyrics/this_is_violence_now.txt",
- "Birds" : "lyrics/birds.txt",
- "Feels Like A Wheel" : "lyrics/feels_like_a_wheel.txt",
- "I'm Overflow" : "lyrics/im_overflow.txt",
- "Big House" : "lyrics/big_house.txt",
- "Government Plates" : "lyrics/government_plates.txt",
- "Bootleg (Don't Need Your Help)" : "lyrics/bootleg.txt",
- "Whatever I Want (Fuck Who's Watching)" : "lyrics/whatever_i_want.txt"
- }
- exmilitary = {
- "Beware" : "lyrics/beware.txt",
- "Guillotine" : "lyrics/guillotine.txt",
- "Spread Eagles Cross The Block" : "lyrics/spread_eagles_cross_the_block.txt",
- "Lord Of The Game" : "lyrics/lord_of_the_game.txt",
- "Takyon" : "lyrics/takyon.txt",
- "Cut Throat" : "lyrics/cut_throat.txt",
- "Klink" : "lyrics/klink.txt",
- "Culture Schock" : "lyrics/culture_schock.txt",
- "5D" : "lyrics/5d.txt",
- "Thru The Walls" : "lyrics/thru_the_walls.txt",
- "Known For It" : "lyrics/known_for_it.txt",
- "I Want It I Need It" : "lyrics/i_want_it_i_need_it.txt",
- "Blood Creepin" : "lyrics/blood_creepin.txt"
- }
- albums = {
- "Bottomless Pit" : bottomless_pit,
- "The Money Store" : the_money_store,
- "Jenny Death" : jenny_death,
- "Niggas On The Moon" : niggas_on_the_moon,
- "Exmilitary" : exmilitary,
- "Government Plates" : government_plates,
- "No Love Deep Web" : no_love_deep_web
- }
- def uprint(*objects, sep = " ", end = "\n", file = sys.stdout): #function to substitute the print one since it wasn't able to print some characters when using cmd
- enc = file.encoding
- if enc == "UTF-8":
- print(*objects, sep = sep, end = end, file = file)
- else:
- f = lambda obj: str(obj).encode(enc, errors = "ignore").decode(enc)
- print(*map(f, objects), sep = sep, end = end, file = file)
- def print_albums():
- print("\n")
- print(" =========================================================================")
- print("\n > DISCOGRAPHY")
- print("\n =========================================================================")
- for album in albums:
- print("\n", end = "")
- print (" > ", album.upper(), end = "\n")
- print("\n =========================================================================")
- def print_tracks(album):
- for song in album:
- print("\n", end = "")
- print(" > ", song.upper(), end = "\n")
- def print_lyrics(track):
- print(" =========================================================================")
- print("\n")
- with open(track, "r") as f:
- for line in f:
- #line = line.encode("utf-8")
- uprint(" ", line.upper())
- print("\n")
- print(" =========================================================================")
- def search_in_lyrics(): #explained in random_lyrics and random_quote
- #trying = False
- find_or_not = False
- print("\n")
- #lyrics_input = ""
- lyrics_input = input(" SEARCH FOR: ")
- #print(lyrics_input)
- lyrics_input = lyrics_input.lower()
- #print(lyrics_input)
- input_splited = lyrics_input.split()
- #lyrics_input = lyrics_input.split()
- words_inputed = len(lyrics_input)
- words_matched = 0
- found_in = []
- #print(lyrics_input)
- #print("\n", end = "")
- number_of_lines = 0
- for album_name, album_dictionary in albums.items():
- for track, filename in album_dictionary.items():
- with open(filename) as f:
- if len(input_splited) != 1:
- #print("it's here")
- for line in f:
- #line2 = line.split(",")
- #line = " ".join(line2)
- if lyrics_input in line.lower():
- find_or_not = True
- #break
- #if find_or_not == True:
- print("\n =========================================================================")
- print("\n ALBUM: ", album_name.upper(), end = "")
- print("\n\n TITLE: ", track.upper())
- #print("", end = "")
- print_lyrics(filename)
- #print(lyrics_input)
- #lyrics_input = ""
- break
- else:
- #print("it's here")
- #print("else")
- for line in f:
- line = line.replace(",", "")
- line = line.replace("-", " ")
- line = line.replace("!", "")
- line = line.replace(".", "")
- line = line.replace("...", "")
- line = line.replace("\"", " ")
- line = line.replace("?", " ")
- line2 = line.split()
- #line = line.replace(",", "")
- #line = line.split()
- #line = line.replace(",", "")
- #line = line.strip()
- #print(line)
- #line2 = line.split(",")
- #uprint(line2)
- #line = "".join(line2)
- #line = line.lower()
- #line2 = line.split()
- #line = " ".join(line2)
- #uprint(line2)
- #for word in line:
- #if word == lyrics_input:
- #find_or_not = True
- #break
- #if lyrics_input in line:#.split():#.split(","):
- #find_or_not = True
- #break
- #for word in line2:#.split():
- #if word == lyrics_input:
- #find_or_not = True
- #break
- #line = line.split()
- #if lyrics_input in line2:
- #find_or_not = True
- #print("here")
- #break
- #uprint(line2)
- for word in line2:
- #print("here")
- word = word.lower()
- #word1 = word.replace(",", "")
- #word2 = word.replace("-", "")
- #word3 = word.replace("!", "")
- #if lyrics_input == word:#1 == lyrics_input or word2 == lyrics_input or word3 == lyrics_input:#print(word)
- if word == lyrics_input:
- #found_in.append(track)
- #print(track)
- find_or_not = True
- #break
- #if find_or_not == True:
- #continue
- #if trying == False:
- if find_or_not == True:
- print("\n =========================================================================")
- print("\n ALBUM: ", album_name.upper(), end = "")
- print("\n\n TITLE: ", track.upper())
- print("\n")
- print_lyrics(filename)
- #print(lyrics_input)
- lyrics_input = ""
- break
- #if find_or_not == True:
- #print_lyrics2(filename, found_in, track, album_name)
- if find_or_not == False:
- #print(lyrics_input)
- lyrics_input = ""
- #print("it's here")
- print("\n", end = "")
- print(" COULDN'T FIND ANYTHING\n")
- print(" =========================================================================")
- #break
- #print(albums[album_name].items())
- def search_by_title(): #I think this one's obvious
- title = input(" TITLE: ").lower()
- print("\n")
- find_or_not = False
- for album_name, album_dictionary in albums.items():
- #print(album_name)
- for track in albums[album_name]:
- #print(track)
- if title.lower() == track.lower():
- print("\n", end = "")
- print(" =========================================================================\n")
- print(" TRACK: ", title.upper())
- print("\n ALBUM: ",album_name.upper())
- print("\n", end = "")
- track_name = albums[album_name][track]
- print_lyrics(track_name)
- track_name = ""
- find_or_not = True
- if find_or_not == False:
- print(" TRACK NOT FOUND")
- print("\n", end = "")
- #print(len(albums))
- times = 0
- def random_quote():
- album_key = random.choice(list(albums.keys())) #takes a random album name (key) from the dictionary "albums"
- #print(album_key)
- album = albums[album_key] #assigns the dictionary of the actual album to the variable "album"
- #print(album)
- track_key = random.choice(list(albums[album_key])) #takes the name of the track (key) out of the album's dictionary and asigns it to "track_key"
- #print(track_key)
- track = album[track_key] #asigns the value of the key (the actualy txt file) to "track"
- with open(track, "r") as f: #counts how many lines there are to later use it to choose a random number
- lines = sum(1 for _ in f) #sum of lines
- #print(lines)
- random_line = random.randrange(lines) #chooses a random number between 0 and the numbmer of lines
- #print(random_line)
- with open(track, "r") as f: #reads each line and, if the line's number is equal to the one generated above, prints it
- for i, line in enumerate(f):
- if i == random_line:
- print("\n =========================================================================")
- print("\n", end = "")
- uprint(" ", line.upper(), end = "")
- print("\n =========================================================================")
- input_count = ""
- def count():
- print("\n =========================================================================")
- global input_count
- global times
- input_count = input("\n SEARCH FOR: ")
- input_count = input_count.lower()
- input_splited = input_count.split(" ")
- #print(len(input_splited))
- print("\n", end = "")
- for album_name, album_dictionary in albums.items(): #basicaly the same thing done in the search_in_lyrics and random_lyrics
- for track, filename in album_dictionary.items():
- with open(filename) as f:
- if len(input_splited) != 1:
- #print("if len(input_splited) < 2:")
- for line in f:
- line = line.lower()
- line2 = line.split(",")
- line = " ".join(line2)
- line2 = line.split("-")
- line = " ".join(line2)
- line2 = line.split("!")
- line = " ".join(line2)
- if input_count in line:
- #print("if input_count in line.lower():")
- times += 1
- else:
- #print("else")
- for line in f:
- #line = line.replace(",", "")
- line = line.replace(",", "")
- line = line.replace("-", " ")
- line = line.replace("!", "")
- line = line.replace(".", "")
- line = line.replace("...", "")
- line = line.replace("\"", " ")
- line2 = line.split()
- #line = " ".join(line2)
- #uprint(line2)
- #line = line.split()
- #line2 = line.split()
- #line = " ".join(line2)
- #line2 = line.split(",")
- #line = "".join(line2)
- #line = line.split()
- #print(line)
- #for word in line:
- #if word == input_count:
- #times += 1
- #if input_count in line:#.split() or input_count in line.split(","):
- #times += 1
- for word in line2:
- word = word.lower()
- #uprint(word, end = " "),
- #word1 = word.replace(",", "").split()
- #word1 = " ".join(word1)
- #word2 = word1.replace("-", "").split()
- #word2 = " ".join(word2)
- #word3 = word2.replace("!", "").split()
- #word3 = " ".join(word3)
- #word4 = word3.replace(".", "").split()
- if word == input_count:#1 == input_count and word2 == input_count and word3 == input_count and word4 == input_count:
- #print("\n")
- #uprint(line)
- times += 1
- #break
- return times
- def print_lyrics2(filename, found_in, track, album_name):
- #if len(found_in) == 0:
- #print(lyrics_input)
- #lyrics_input = ""
- #print("it's here")
- #print("\n", end = "")
- #print("\n COULDN'T FIND ANYTHING\n")
- #print("===============================================================================")
- print(len(found_in))
- if len(found_in) == 1:
- print("\n =========================================================================")
- print("\n ALBUM: ", album_name.upper(), end = "")
- print("\n\n TITLE: ", track.upper())
- print("\n")
- #print_lyrics(filename)
- print(lyrics_input)
- lyrics_input = ""
- if len(found_in) > 0:
- pass
- def random_lyrics():
- print("\n =========================================================================")
- number_of_lines = random.randrange(10,100) #to keep the lyrics from getting too big
- #print(number_of_lines)
- current_line = 0 # in case it isn't obvious, what I'm doing in this function is going through every lyrics in every album and reading line by line
- #if the line's number (current_line) is equal to the random one generated (random_word_index), I print it.
- name_length = random.randrange(1,6) # just so the track's title doesn't get too big
- generated_name_list = [] #I put the words in this list, then turn it into a string (generated_name)
- current_track_name_length = 0 #just to keep track of the size of the title
- album_name_length = random.randrange(1,6) #same thing going on here, but for the album name
- generated_album_name_list = []
- current_album_name_length = 0
- for album_name, album_dictionary in albums.items(): #go through the albumS dictionary, getting every album dictionary
- for track, filename in album_dictionary.items():#go through every track, getting the title
- track_name_splited = track.split() #split the title to, later, maybe take a word from it
- track_name_splited_length = len(track_name_splited) #gets the length to use in the for loop bellow
- random_word_index = random.randrange(0, track_name_splited_length) #index of the word I'm gonna take
- #print(track_name_splited)
- for index, word in enumerate(track_name_splited): #go through the title, taking the an index and a word
- #print(index, word)
- if index == random_word_index and len(generated_name_list) < name_length: #if the index is the one I want, I take it's word
- generated_name_list.append(word)#put the word in the list
- generated_name = " ".join(generated_name_list) #now i turn the list into a string
- print("\n TITLE: ", generated_name.upper()) #prints it
- for album_name, album_dictionary in albums.items(): #same thing for the album so I'm not gonna go though it again
- album_name_splited = album_name.split()
- album_name_splited_length = len(album_name_splited)
- random_word_index = random.randrange(0, album_name_splited_length)
- for index, word in enumerate(album_name_splited):
- if index == random_word_index and len(generated_album_name_list) < album_name_length:
- generated_album_name_list.append(word)
- generated_album_name = " ".join(generated_album_name_list)
- print("\n ALBUM: ", generated_album_name.upper())
- print("\n =========================================================================")
- while int(current_line) < number_of_lines: #to make sure the total of lines is the one randomly chosen in the begining
- album_key = random.choice(list(albums.keys())) #takes a random album name (key) from the dictionary "albums"
- #print(album_key)
- album = albums[album_key] #assigns the dictionary of the actual album to the variable "album"
- #print(album)
- track_key = random.choice(list(albums[album_key])) #takes the name of the track (key) out of the album's dictionary and asigns it to "track_key"
- #print(track_key)
- track = album[track_key] #asigns the value of the key (the actualy txt file) to "track"
- with open(track, "r") as f: #counts how many lines there are to later use it to choose a random number
- lines = sum(1 for _ in f) #sum of lines
- #print(lines)
- random_line = random.randrange(lines) #chooses a random number between 0 and the numbmer of lines
- #print(random_line)
- with open(track, "r") as f: #reads each line and, if the line's number is equal to the one generated above, prints it
- for i, line in enumerate(f):
- line = line.upper()
- line = line.splitlines()
- #print(line)
- if i == random_line:
- for something in line:
- if len(something) > 0: #if the "something" isn't nothing (which means it was a \n), I print it and a "\n". But if it was nothing, I just ignore
- print("\n", end = "")
- uprint(" ", something, end = "\n")
- else:
- pass #I have two options: ignore it, or print a \n. If I did print it, it would look kinda weird, unless I wrote some code to check
- #if after it, there was something like [instrumental] and other variations from. I could just make it check if the next line
- #starts with a [, if it does, print a \n. But I don't think that's necessaire.
- current_line += 1
- print("\n =========================================================================")
- def main_menu():
- global times
- still_in = True
- while still_in == True:
- print("\n 1 - SEARCH BY TITLE\n")
- print(" 2 - SEARCH BY LYRICS LINE\n")
- print(" 3 - DISCOGRAPHY\n")
- print(" 4 - RANDOM QUOTE\n")
- print(" 5 - COUNT HOW MANY TIMES MC RIDE SAID SOMETHING\n")
- print(" 6 - GENERATE RANDOM LYRICS\n")
- print(" 7 - EXIT\n")
- option = input(" > ")
- option = option.lower()
- if option == "1" or option == "search by title" or option == "title":
- print("\n")
- search_by_title()
- elif option == "2" or option == "search by line" or option == "line":
- search_in_lyrics()
- elif option == "3" or option == "discography" or option == "albums":
- try_again = True
- while try_again == True:
- print_albums()
- print("\n")
- print(" 1 - TRACKLIST\n")
- print(" 2 - GO BACK\n")
- option2 = input("\n > ")
- option2 = option2.lower()
- if option2 == "1" or option2 == "tracklist":
- find_or_not = False
- option3 = input("\n\n ALBUM: ")
- print("\n", end = "")
- option3 = option3.lower()
- for album, track in albums.items():
- if option3 == album.lower():
- find_or_not = True
- print(" =========================================================================")
- #print("\n", end = "")
- print("\n > %s TRACKLIST " % album.upper())
- print("\n =========================================================================")
- print_tracks(track)
- if find_or_not == False:
- print("\n ALBUM NOT FOUND\n")
- elif option2 == "2" or option2 == "go back" or option2 == "quit" or option2 == "exit":
- print("\n")
- break
- else:
- print("\n THAT DOESN'T EVEN EXIST\n")
- elif option == "4" or option == "random" or option == "random quote":
- random_quote()
- elif option == "5" or option == "how many times" or option == "count" or option == "count how many times" or option == "count times":
- count()
- if times > 0:
- if times == 1:
- print(" MC RIDE SAID ", end = "\"")
- print(input_count.upper(), end = "\"")
- print(" EXACTLY", times, "TIME", end = "\n")
- print("\n =========================================================================")
- else:
- print(" MC RIDE SAID ", end = "\"")
- print(input_count.upper(), end = "\"")
- print(" EXACTLY", times, "TIMES", end = "\n")
- print("\n =========================================================================")
- else:
- print(" MC RIDE NEVER SAID THAT", end = "\n")
- print("\n =========================================================================")
- times = 0
- elif option == "6" or option == "random" or option == "random track" or option == "random lyrics" or option == "lyrics":
- random_lyrics()
- elif option == "7" or option == "quit" or option == "exit":
- still_in = False
- break
- elif option == "dude nice": #starting from here it's just stupid inside jokes that the people who were supposed to see probably didn't even download the program
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" ok thanks", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "taxation":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" IS THEFT!!!11", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "is taxation theft" or option == "is taxation theft?":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" Hell yeah dude", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "taxation is theft":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" You're god damn right it is!", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "ok" or option == "ok nice":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" ok thanks", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "dude ok" or option == "nice ok":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" ok nice", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "nice":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" ok", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "imposto":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" ROUBO", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "birds" or option == "fuck you" or option == "fuck u":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" FUCK YOU", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "björk":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 BJÖRK <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "hoffman" or option == "matthew hoffman" or option == "hoff" or option == "matty" or option == "matty hoff" or option == "matty hoffman":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 MATTY <3 <3 <3 <3 <3 <3 <3 <3 <3 <3 <3", end = "")
- print("\n")
- print(" =========================================================================")
- elif option == "bjork":
- print("\n")
- print(" =========================================================================")
- print("\n", end = "")
- print(" IT'S BJÖRK YOU FUCKING IDIOT", end = "")
- print("\n")
- print(" =========================================================================")
- else:
- print("\n")
- print("\n =========================================================================")
- print("\n I DIDN'T GET THAT.\n\n TRY AGAIN.")
- print("\n =========================================================================")
- def test():
- global times
- with open(bottomless_pit["Eh"]) as f:
- #for line in f:
- #line = line.replace(",", "")
- #line = line.split()
- #for word in line:
- #word = word.lower()
- #if word.replace(",", "") == "reflection":
- #print("\n")
- #uprint(line)
- #break
- for line in f:
- #line = line.replace(",", "")
- line = line.replace(",", "")
- line = line.replace("-", "")
- line = line.replace("!", "")
- line = line.replace(".", "")
- line = line.replace("...", "")
- line = line.replace("\"", " ")
- line2 = line.split()
- #line = " ".join(line2)
- #uprint(line2)
- #line = line.split()
- #line2 = line.split()
- #line = " ".join(line2)
- #line2 = line.split(",")
- #line = "".join(line2)
- #line = line.split()
- #print(line)
- #for word in line:
- #if word == input_count:
- #times += 1
- #if input_count in line:#.split() or input_count in line.split(","):
- #times += 1
- for word in line2:
- word = word.lower()
- uprint(word, end = " "),
- #word1 = word.replace(",", "").split()
- #word1 = " ".join(word1)
- #word2 = word1.replace("-", "").split()
- #word2 = " ".join(word2)
- #word3 = word2.replace("!", "").split()
- #word3 = " ".join(word3)
- #word4 = word3.replace(".", "").split()
- if word == "reflection":#1 == input_count and word2 == input_count and word3 == input_count and word4 == input_count:
- print("\n\n\nit's here\n\n\n")
- #print("\n")
- #uprint(line)
- times += 1
- #break
- print(times)
- print("\n")
- print(" =========================================================================")
- print("\n DEATH GRIPS 2.0")
- print("\n =========================================================================")
- main_menu()
Add Comment
Please, Sign In to add comment