VARIABLE IN PYTHON
ALL ABOUT VARIABLE IN PYTHON
THIS IS CODE OF VARIABLES IN PYTHON YOU CAN COPY PASTE THIS CODE AND RUN
THIS CODE AND SEE THE OUTPUT IN THIS CODE I HAVE COVER ALMOST WORK RELATED
TO VARIABLE
| ||
z=14.5 #float | ||
x=str(3) | ||
print(x) | ||
print(y) | ||
print(z) | ||
#type cast | ||
x = str(3) # x will be '3' | ||
y = int(3) # y will be 3 | ||
z = float(3) # z will be 3.0 | ||
#Type | ||
x = 5 | ||
y = "John" | ||
print(type(x)) | ||
print(type(y)) |
VIDEO RELATED TO VARIABLES
For notes you can check my website
I hope that it will be very helpful for
I hope that it will be very helpful for
You. For more about python and these type of cheatsheet.
join me🤗🙂🙂
Comment me. what you have like or dislike in this post.
Comments
Post a Comment