x = 5 y = x print(y)
Quote:How do I print right hand side value in Python
y
x = 5 # variable x now contains the value 5 y = x # variable y now contains a copy of variable x, that is the value 5 print(y) # prints whatever value is in y
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)