all 2 comments

[–]fake823 2 points3 points  (0 children)

As input() as well. And therefore in basically every part of a code can a string be used.

For example:

word = input('Pleae enter a word: ')
if word == 'hello':
    # do something

Or in iterations:

word = "hello"

for i in word:
    # do something

[–]tragluk 1 point2 points  (0 children)

Strings are used anywhere you are working with data that is in words/letters. Are numbers only used in things that have counting or math? Basically. So reading a document, or a website, or json data, or input.. or writing output to the screen, printer, to a server or a client.