#Hobbies: * basketball * golf * cooking * sneakers
import sys
import argparse
import random
= ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'black', 'white', 'gray']
colors
def pick_outfit():
= random.choice(colors)
top = random.choice(colors)
bottom if temp >= 75:
print("Wear a", top, "t-shirt with", bottom, "shorts")
if temp < 75 and temp > 60:
print("Wear a", top, "hoodie with", bottom, "shorts")
if temp <= 60 and temp > 40:
print("Wear a", top, "hoodie with", bottom, "pants")
if temp <= 40:
print("Wear a", top, "jacket with", bottom, "pants")
def new_outfit():
= input("Do you want a different outfit? (yes/no)")
new if new == "yes":
pick_outfit()
new_outfit()if new == "no":
print("Have a great day!")
if __name__ == "__main__":
= "This script decides an outfit for the user depending on the weather"
script_desc = argparse.ArgumentParser(description = script_desc)
p = p.parse_args()
args
= int(input("Lets decide your outfit! First we need to know the weather today. What is the temperature?"))
temp
pick_outfit()
new_outfit()