Created
June 3, 2023 11:01
-
-
Save moulik-source/84d8bce5058422329f9aa60864fd5c5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Reassigning variable with a different data type | |
x = 10 | |
print(x) # Output: 10 | |
print(type(x)) # Output: <class 'int'> | |
x = str(x) | |
print(x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment