Q:

Write a Python program to remove a newline in Python.

0

Write a Python program to remove a newline in Python.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

str1='Python Exercises\n'
print(str1)
print(str1.rstrip())

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now