Python Programming, String Data Type

Опубликовано: 11 Март 2021
на канале: Quick Programming Concepts
29
1

#shorts #programming #python

This quick video shows how strings work in Python. This video is intended for those who are just learning how to program and those who are new to programming using Python.

A string is one of several data types in Python. They can be very useful for storing and working with text in your Python programs. Strings can be created by putting text within a set of double or single quotes.

Example of a Python string, using single quotes:
'this is a string'


Example of a Python string using double quotes:
"this is another string"


Strings can be assigned to variables with =, for example:
example = 'This is a string assigned to the variable example'