Answers for "python input().strip()"

-1

python input().strip()

txt = "     banana     "
x = txt.strip()
print("of all fruits", x, "is my favorite")

txt = ",,,,,rrttgg.....banana....rrr"
x = txt.strip(",.grt")
print(x)
Posted by: Guest on March-21-2021

Python Answers by Framework

Browse Popular Code Answers by Language