You are on page 1of 1

Python

1. \ (back slash)
Dialogue = ‘ “ shiva \’re bag is red”’

Print(dialogue)

“shiva you’re bag is red”

Back slash skips the next values like ‘’.

Concatination:
Add one or more strings at a time

Word = “ram”

Print(Word*5)

It will print 5 times the ram word.

1. We cannont sub or div two strings

2. Length of the string;


Word_length = len(“Tulasi ram”)

Print(word length)

Out put will be no of letters in the word.

We cannot add integer to string so that we have convert number to string by

Str(integter) //integer is 34434 any value

You might also like