Single line String Data and Multi line String Data Examples.

·

1 min read

Example 1:

a="Java Programming language"

print(a,type(a))

output: Java Programming language <class 'str'>

Example 2:

1.s='Python Programming language'

print(s,type(s))

output:Python Programming language <class 'str'>

2.s2="a"

print(s2,type(s2))

output: a <class 'str'>

3.s2="123456789"

print(s2,type(s2))

output: 123456789 <class 'str'>

4.s2="@!#$%^&*()"

print(s2,type(s2))

output: @!#$%^&*() <class 'str'>

Multi line string data Example:

Ex: addr 1=" " " Gudio Van Rossum

F no: 3-122,Hill side

python software foundation

nether lands-56 " " "

print(addr1,type(addr1))

output:Gudio Van Rossum

F no: 3-122,Hill side

python software foundation

nether lands-56.