Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- pc_artemis = {
- 'processor': 'AMD Ryzen 5 2600X 6-Core 3.6 GHz (4.2 GHz Max Boost)',
- 'memory': '16GB DDR4 3000 MHz',
- 'video': 'Nvidia GTX 1660 6GB GDDR5',
- 'sound': 'N/A',
- 'network': '802.11 ac'}
- def main():
- print(pc_artemis)
- again = "y"
- while again == "y":
- user_input = input("Choose a component type to view the component used: ")
- if user_input.lower() in pc_artemis:
- print(pc_artemis[user_input])
- again = str(input("View another component? (y/n): "))
- if again == "n":
- print("Bye!")
- break
- else:
- print("That is not a stored specification. Please try again.")
- again = "y"
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement