Skip to content

Instantly share code, notes, and snippets.

@goyalrohit
Created September 22, 2019 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goyalrohit/0f3a95cdcbdcce7b7642637c9c7cbf3c to your computer and use it in GitHub Desktop.
Save goyalrohit/0f3a95cdcbdcce7b7642637c9c7cbf3c to your computer and use it in GitHub Desktop.
#!/usr/bin/python
#decimal value
intValue = 2019
print(intValue)
#type of the value
print(type(intValue))
#convert to string
intValue = str(intValue)
print(intValue)
#type of the value
print(type(intValue))
#hexadecimal value
hexaValue = 0x7E3
print(hexaValue)
#type of the value
print(type(hexaValue))
#convert to string
hexaValue = str(hexaValue)
print(hexaValue)
#type of the value
print(type(hexaValue))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment