Basic Concepts

Steven D'Aprano steve at pearwood.info
Wed Apr 27 08:04:01 EDT 2016


On Wed, 27 Apr 2016 07:29 pm, Smith wrote:

> Fill in the blanks to declare a variable, add 5 to it and print its value:
> 
>  >>> x = 4
>  >>> x_ = 5
>  >>> print_
> 
> 
> Any suggestion ?


Okay, you have a variable x with the value of 4:

x = 4


How do you think you would print the value of x?

Hint: here I print the value of z instead:

print z



-- 
Steven




More information about the Python-list mailing list