While coding in Python I ran into this error in CMD
Project11.py", line 5
if Select == 1
^
SyntaxError: invalid syntax
Here is my full program
print("Canadian to USD")
Select = input("Press 1 for Canadian to USD or 2 for USD to Canadian ")
if Select == 1
Canadian1 = input("Canadian ")
USD1 = int(Canadian1) * 0.63674
print("{0}$ = ${1}".format(Canadian1, USD1))
if Select == 2
USD2 = input("USD ")
Canadian2 = int(USD2) * 1.5704
print("${0}={1}$".format(USD2, Canadian2))
Can someone please correct the error or help me please? Thanks :)
:) at the end of theifline.:) at the end of bothifstatement linesif Select == '1':or useSelect =int(input("Press 1 for Canadian to USD or 2 for USD to Canadian ")). Just putting:isn't sufficient