"Name 'x' is parameter and global" error in Python
"Name 'x' is parameter and global" error in Python Question: I was wondering why this won’t work? I’m fairly new to programming and I’m learning Python. def convert(x,y): while True: try: global x x = int(input(“Number: “)) except ValueError: print(“Make sure it is a number.”) while True: try: global y y = int(input(“Number: “)) except …