Last active
September 22, 2019 04:32
-
-
Save goyalrohit/bffe20d100c7887580496f29dea72f2a 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
#!/usr/bin/python | |
#Assign string value to the variable | |
myText = '2019' | |
print(type(myText)) | |
#convert String to Integer | |
intValue = int(myText) | |
#integer value | |
print(intValue) | |
#type of the converted value | |
print(type(intValue)) | |
#concatenate with interger | |
print(intValue+2) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment