Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shabbirbhimani/067d20d403f35a66c4308587a5c06016 to your computer and use it in GitHub Desktop.
Save shabbirbhimani/067d20d403f35a66c4308587a5c06016 to your computer and use it in GitHub Desktop.
4.2 Declaring string
# 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