Image

Anyone Can Code.





Image


None



Jyotirmay Zamre



The 'None' data type is used to define something which has no value at all. It is not the same as 0, False, or an empty string. It is its own data type.

None is used to keep a variable empty with no particular data type. You can change the value of a variable later.


    
    x = none
    print(x)
                                          
None

Let's see how we can change the value of x.


    
    x = none
    print(x)
    x = 5
    print(x)
                                          
None 5


That's it for this tutorial! Click Next to access the next tutorial!

❮ Back

Next ❯









Copyright © 2020, Q-Programming | Created by Arjun Sodhi, Balpreet Juneja and Sammarth Kumar | Developed and Designed by Sammarth Kumar