Category : list

t = input(‘Enter a symbol to use for your letter:’) message = input(‘Enter a message:’).upper() if ‘F’ in message: print(f"{t}"f"{t}"f"{t}"f'{t}’f'{t}’f'{t}’f'{t}’"n" f"{t}"f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" f'{t}’f'{t}’"n" " ") if ‘H’ in message: for row in range(7): for col in range(5): if col ==0 or col ==4 or (row==3 and (col>0 and col<4)): print(f'{t}’, end="") else: ..

Read more

I have to lists: [‘gentleman-gnar’, ‘galactic-nasus’, ‘resistance-jayce’, ‘master-chef-tahm-kench’, ‘nutcracko’, ‘blood-moon-thresh’, ‘spellthief-lux’, ‘deep-sea-nami’, ‘ravenborn-leblanc’] [‘https://lolskinshop.com/wp-content/uploads/2015/06/splash-art-gentleman-gnar.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2015/05/splash-art-galactic-nasus.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2015/06/splash-art-master-chef-tahm-kench.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2015/03/load-screen-nutcracko.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2015/05/load-screen-spellthief-lux.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2017/01/splash-art-deep-sea-nami.jpg’, ‘https://lolskinshop.com/wp-content/uploads/2015/04/splash-art-ravenborn-leblanc.jpg’] and i want to check if there is the name of the first list in the second list (for example: resistance-jayce is missing) and if its missing, i want to set a string (for example ..

Read more

I need to get the tuple positions which are linked to each other with at least one element within it. [(‘1′,’1′,’1’), (‘X,’1′,’X’), (‘Z,’Z’,’Z’), (‘Y,’Y’,’X’)] Here, in 1st tuple value ‘1’ present in 2nd tuple. And, now in 2nd tuple value ‘X’ present in last tuple. So, I need to combine all these into one list ..

Read more

I’m attempting to write a scraper that will download attachments from an outlook account when I specify the path to folder to download from. I have working code but the folder locations are hardcoded as below:- import win32com.client outlook = win32com.client.Dispatch("Outlook.Application") namespace = outlook.GetNamespace("MAPI") root_folder = namespace.Folders.Item(‘Personal’) #Inbox of interest subfolder = root_folder.Folders[‘Inbox’].Folders[‘Holidays’].Folders[‘2009’].Folders[‘June’] #I have ..

Read more

I am currently writing a program that outputs the lowest and highest numbers of an input_list. currently I am using list_of_num = [input_list for input_list in input("Input 4 numbers separated by comma’s to find the lowest and highest numbers:n").split(",")] to separate the numbers input by a user, and then converting to a list to compare ..

Read more