<jupyter_start><jupyter_text>Asking string to be returned so it has ' ' or " " in output :<jupyter_code>'hello' #Single quote string
"world" #Double quote string
"I am good" #Normal sequence
" I'm good " #Mixed sequence<jupyter_output><empty_output><jupyter_text>Printing out the string so it do not have ' ' or " " in output :<jupyter_code>print ("hello") #Printing out using " "
print ('world') #Printig out using ' '
"hey 1" #Returning the output of strings
"hey 2" #so only the last line gives o/p
print ("hey 1") #Printing both the strings
print ("hey 2") #so both the lines gives o/p
print ("hello world") #Simple string<jupyter_output>hello world<jupyter_text>Escape sequence (new line & tab)<jupyter_code>print ("hello \n world") #Escape sequence
print ("hello \nworld")  #Without gap seq
print ("hello\tworld")    #Escape sequence t - tab (\t)
print ("hello \tworld")   #prints strings in same line
print ("hello \t world")  #with more spaces b/w them<jupyter_output>hello	world
hello 	world
hello 	 world<jupyter_text>Length and type function<jupyter_code>len ("hello") #Length of string without space
len ("I am") #Length of string with spaces
print (len("hello")) #Printing length
print (len("I am"))  #Syntax to print
print (type ("5")) #Type function
print (type (5))   #Printing result
a = 5 #Assigning value to variable
a     #Returning value of variable
type (a) #Type function by assigning value
a = "hi" #Type function by assigning value
type (a)
print (len ("I'm")) #Type function by assigning value<jupyter_output>3
{'fraction_non_alphanumeric': 0.11848958333333333, 'fraction_numerical': 0.005208333333333333, 'mean_word_length': 5.19758064516129, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '662301', 'license': 'MIT', 'n_tokens_mistral': 509, 'n_tokens_neox': 491, 'n_words': 203, 'path': 'Section 03 - Object & Data Structures/Lec 15 - Strings, escape, len, type.ipynb', 'repo_name': 'sansjha4900/Udemy-Python-Notes', 'size': '1536'}