Strings



a ='some text' 
b = "some text"
print(type(a)) '<class 'str'>


???

_var = 6 
print(f'The number is {_var:2f})


Multi-Line

We can use three single quotes

myText = '''Some  
Multi Line
Text'''
print(myText)




line continuation - triple quoted strings

my_variable = """This is a long multi-line 
text block. Notice how it can spill onto
multiple lines. It has been assigned to a new
variable called my_variable. You can use 'single'
and "double" quotes inside."""
print(my_variable)






© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopNext