STRINGS IN PYTHON
ALL ABOUT STRINGS IN PYTHON THIS IS CODE OF STRINGS IN PYTHON YOU CAN COPY PASTE THIS CODE AND RUN THIS CODE AND SEE THE OUTPUT IN THIS CODE I HAVE COVER ALMOST WORK RELATED TO STRINGS #string print ( "Hello" ) print ( 'Hello' ) #Assign String to a Variable b = "Hello" print ( b ) #Multiline Strings c = """Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.""" print ( c ) #Strings are Arrays z = "Hello, World!" print ( z [ 1 ]) #Looping Through a String for x in "banana" : print ( x ) #String Length d = "Hello, World!" print ( len ( d )) #Check String txt = "The best things in life are free!" print ( "free" in txt ) #(slicing in string) #Slice To the End n = "Hello, World!" print ( n [ 2 :]) #negative slicing in string m = "Hello, World!" print (