Robotics & Artificial Intelligence

Write a Python program to demonstrate use of string operators.

Getting Started

2 Likes

Answer

a = "Sun"
b = "Rise"

# String concatenation
print(a + b)

# String replication
print(a * 4)

Output

SunRise
SunSunSunSun

Answered By

1 Like


Related Questions