def dollar():
print (“amount =”)
amount = input()# i am always getting cant assign operator error here
inr = 64
if amount <= inr:
amount / inr = usd
print(“usd”)
else:
inr / amount = usd
print(“usd”)
print(“enter usd or euro”)
money = input()
if money == usd:
dollar()
else:
europ() #leave this part
#let me know how to assign variable which can be used in loops and functions
at the same time i have to assign variable value in output
mtf
#2
amount = input("Enter an amount: ")
When printing a variable, use the identifier, not a string…
print (usd)
ok thanks.
i am getting error
cant assign operator for amount and inr
so i kindly request you to solve that issue
system
closed
#4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.