Skip to content

Instantly share code, notes, and snippets.

@moulik-source
Created June 3, 2023 11:01
Show Gist options
  • Save moulik-source/84d8bce5058422329f9aa60864fd5c5a to your computer and use it in GitHub Desktop.
Save moulik-source/84d8bce5058422329f9aa60864fd5c5a to your computer and use it in GitHub Desktop.
# 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