-3

Can a space be given in variable naming. I tried a python program but it's showing an error I have attached the screenshot of the same.

enter image description here

1 Answers1

-1

You can't give a space. It's violating the naming convention. What you can do, add underscore (_) between words. Here is the correction:

Gal_Gadot = "Gal Gadot"
print(Gal_Gadot);

Hope this makes sense.

Rashed Rahat
  • 2,357
  • 2
  • 18
  • 38