String_handling_function_python
String_handling_function_python
#length of string
print(len("Hello World!"))
15. #f string - used to insert values in a string from previous part of function
name = "Nidhyathi"
print(f"Hey, my name is {name}")
16. #format - formats the specified value(s) and insert them inside the string's
placeholder
print("Hey, my name is {name}".format(name = "Nidhyathi"))