I have an issue where i try to use CMD to play with my program, but when i reach near the end
if operation == "yes":
print("Please input the company")
operation = input()
if operation == "Tesla":
I type in "Tesla", the cmd closes straight away without printing anything. However when I use it on the Python IDLE Shell, it works perfectly fine and finishes
This is the code:
print("Welcome to YourFinance")
print("*WARNING - THIS IS ONLY A EXAMPLE - NOTHING HERE YOU SEE IS REAL*")
print("Would you like to search for a company?")
print("Yes or No to navigate, Company names are case sensitive")
operation = input()
if operation == "yes":
print("Please input the company")
operation = input()
if operation == "Tesla":
print("Tesla: Market Cap: £/$ 102 Billion")
print("Tesla: Lowest stock price: £/$17.73: 12/02/2016")
print("Tesla: Highest stock price: £/$106.72: 02/06/2022")
print("Tesla: *LIVE* Average traded price: £/$72.21: 30/02/2022 10:38AM")