Strings are the scalar datatype in Python. Strings are sequence of characters.

Strings are either in single quotes or double quotes like ‘school’ or “school”.

print(‘school’)
print(“school”)

Let us define a variable say name and assign the value Mary to this variable:
name = ‘Mary’
print(name)

Ruma Sinha

Data Analyst|Data Science|Machine Learning|Deep Learning“When you are grateful, fear disappears and abundance appears.” ― Anthony Robbins

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store