Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ####################################################
- # Written by: Sean Huff
- # CS1002: Indroduction to Computer Science
- # Date:
- # Assignment 3: Lab 6-2
- # Description: Broken Code
- ####################################################
- # DICTIONARY
- stats = {1: {"Player": "Derrick Henry", "yards": 870, "TD": 9}, 2: {"Player": "Nick Chubb", "Yards": 841, "TD": 10}, 3: {"Player": "Saquon Barkley", "Yards": 779,
- "TD": 5}}
- x=3
- zz=0
- # LOOP
- while zz != -7:
- # NESTED LOOP
- for key,value in stats.items():
- for x, y in value.items():
- print("Player ={}".format(y))
- # IF YARDS
- if x.lower() == "yards":
- print("yards = {}".format(y))
- zz = -7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement