Solve this error



def dollar():
print (“amount =”)
amount = input()# i am always getting cant assign operator error here
inr = 64
if amount <= inr:
amount / inr = usd
inr / amount = usd

print(“enter usd or euro”)
money = input()
if money == usd:

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

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


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.