Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #!/usr/bin/env python3
  2.  
  3. pc_artemis = {
  4. 'processor': 'AMD Ryzen 5 2600X 6-Core 3.6 GHz (4.2 GHz Max Boost)',
  5. 'memory': '16GB DDR4 3000 MHz',
  6. 'video': 'Nvidia GTX 1660 6GB GDDR5',
  7. 'sound': 'N/A',
  8. 'network': '802.11 ac'}
  9.  
  10. def main():
  11.  
  12. print(pc_artemis)
  13.  
  14. again = "y"
  15.  
  16. while again == "y":
  17. user_input = input("Choose a component type to view the component used: ")
  18. if user_input.lower() in pc_artemis:
  19. print(pc_artemis[user_input])
  20. again = str(input("View another component? (y/n): "))
  21. if again == "n":
  22. print("Bye!")
  23. break
  24.  
  25. else:
  26. print("That is not a stored specification. Please try again.")
  27. again = "y"
  28. if __name__ == "__main__":
  29. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement