Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import argparse
- parser = argparse.ArgumentParser()
- parser.add_argument("--barbie",default=50)
- parser.add_argument("--cars",default=50)
- parser.add_argument("--movie",default="other")
- barbie = int(parser.parse_args().barbie)
- cars = int(parser.parse_args().cars)
- movie = str(parser.parse_args().movie)
- if barbie > 100 or barbie < 0:
- barbie = 50
- if cars > 100 or cars < 0:
- cars = 50
- if(movie == "other"):
- movie = 50
- if(movie == "football"):
- movie = 100
- if(movie == "melodrama"):
- movie = 0
- boy = (100 - barbie + cars + movie)/3
- girl = 100 - boy
- print("boy:",int(boy))
- print("girl:",int(girl))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement