Many languages arrange code into blocks using curly braces ({ and }) or BEGIN and END
statements – these languages encourage us to indent blocks to make code easier
to read, but indentation is not compulsory.
The best way to learn new things is to take a practical approach
of the things you want to learn. Here is a fragment of code that demonstrates the use of statements with texts in Python:
Æ’ python command
def t(text):
text = text + 'fish and chips'
return text
print(t('I want '))
√ output
I want fish and chips
Sign up here with your email
ConversionConversion EmoticonEmoticon