CHAPTER 10 •
PYTHON
Python Strings
Learn how to create and work with text in Python.
01 What is this?
Learn how to create and work with text in Python.
02 Syntax
Python Syntax
text = 'Hello'
03 Example
Python Example
name = 'AIFA Infotech' print(name)
04 Important Points
Strings can be written using single or double quotes.
05 Common Mistakes
Remember that strings are text values.
06 Real World Use
Strings are used for names, messages, addresses and text processing.
07 Practice This Topic
Now try the example yourself in the AIFA Python Editor.
- Read the example carefully.
- Change the values.
- Run the code.
- Observe the output.
- Try creating your own example.