How d=+c is valid in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How d=+c is valid in python

Doubt

18th Oct 2019, 6:11 PM
Arunachalam A
Arunachalam A - avatar
1 Answer
+ 3
hi, it is a valid statement in python d=8 c=4 d=+c print(d) # output: 4 # "=" symbol here is assignment of +4, so it's a regular expression
18th Oct 2019, 7:36 PM
Lothar
Lothar - avatar