Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cars = {'honda': 'civic-si', 'mazda': 'mazda3', 'ford': 'focus'}
- print("Enter an oem-name: (blank to quit)" )
- oem_name = input()
- if oem_name == '':
- break
- if oem_name in cars:
- print("That is the " + cars(oem_name))
- else:
- print("We don't have that oem-name. Try again.")
- THE ERROR I'M GETTING IS:
- line 7
- break
- ^
- SyntaxError: 'break' outside loop
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement