Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Python error "Python: can't assign to literal"

Asked by Elayne Balding Apr 18, 2021 2.2K views 1 answer
Share

About this question

I am trying to run this code in python. 

and getting syntax errors.

a = 2, b =4

But I am getting an error that says”python can't assign to literal”:

SyntaxError: can't assign to literal

How can I resolve this?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.