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
3 Likes
Related Questions
What is the difference between list and tuple in Python? Explain with the help of an example.
Write a Python program to declare and print 'list', 'dictionary', and 'tuple'.
Why indentation in Python is important? Explain with the help of an example.
Write a Python program to demonstrate difference between list and tuple.