Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :) shirt.py exists
- :( shirt.py exits given zero command-line arguments
- Expected non-zero exit code.
- :( shirt.py exits given one command-line argument
- Expected non-zero exit code.
- :( shirt.py exits given a file without a .jpg, .jpeg, or .png extension
- Expected non-zero exit code.
- :( shirt.py exits given a non-existent file
- Expected non-zero exit code.
- :( shirt.py exits given an output file with a different extension than input file
- Expected non-zero exit code.
- :) shirt.py exits given more than two command-line arguments
- :( shirt.py correctly displays shirt on muppet_01.jpg
- muppet_01_out.jpg not found
- :( shirt.py correctly displays shirt on muppet_02.jpg
- muppet_02_out.jpg not found
- :( shirt.py correctly displays shirt on muppet_03.jpg
- muppet_03_out.jpg not found
- :( shirt.py correctly displays shirt on muppet_04.jpg
- muppet_04_out.jpg not found
- :( shirt.py correctly displays shirt on muppet_05.jpg
- muppet_05_out.jpg not found
- :( shirt.py correctly displays shirt on muppet_06.jpg
- muppet_06_out.jpg not found
- list_test = ["Joe, Jenkins", "World"]
- #Grab item by index 0, split it into two to new variable
- test_var = list_test[0]
- x = test_var.split(", ")
- #Create empty list and add both items from the variable with a for loop
- empty_list = []
- for word in x:
- empty_list.append(word)
- #Add the last item to the list
- empty_list.append(list_test[-1])
- print(empty_list)
- 0.538472
- 0.538472
- 0.384686
Advertisement
Add Comment
Please, Sign In to add comment