Created
March 29, 2018 06:09
-
-
Save shabbirbhimani/067d20d403f35a66c4308587a5c06016 to your computer and use it in GitHub Desktop.
4.2 Declaring string
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
# declaring String variables using single quote (') | |
companyName = 'New Company Private Limited' | |
# declaring String variables using double quote (") | |
tutorialName = "Variable and data types" | |
# declaring String variables using triple quote (''') | |
companyAddress = ''' 342-345, first floor, | |
Building number 5, | |
Road 7, North Carolina, | |
USA | |
''' | |
# printing the value | |
print('company Name is', companyName) | |
print("tutorial Name is", tutorialName) | |
print('''company address is''', companyAddress) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment