Python String Variable Demonstration
# Python String Variable Demonstration
# Declaration #String Declaration with a single quote for single line display x= '' print (x) #String Declaration with a double quote for single line display x= " " print (x) #String Declaration with multi-line print with a single quote x = '''Hello This is Python Multiline demo ''' print (x) #String Declaration with multi-line print with double quote x = """Hello This is Python Multiline demo """ print (x) #How print works x= 'hello' #variable will be printed print (x) #x as a string will be printed print ('x') #x as a string will be printed print ("x") #variable x will be printed in string conversation print (str(x)) #repr() representation that has all information print (repr(x)) |
Script reference: https://github.com/Patelvijaykumar/Python-Tutorial/blob/master/Python-String/String-example1.py
Thanks for sharing this blog. This article gives lot of information.
ReplyDeletePython Training in Hyderabad
Python Training
Python Online Training
Great Post, Thanks for sharing the informative blog.
ReplyDeletePython Online Training
Python Online Training in Chennai
Python Online Course in Chennai
Great Article. I found so many interesting stuff in your blog Helped a lot in increasing my knowledgevisit site
ReplyDeleteNice post..
ReplyDeletedata science training india
data science course hyderabad online