Answer to Question #222342 in Python for sai

Question #222342
when we give " python foundations " as input,we got "-" between the words.can you help me to resolve it?
1
Expert's answer
2021-08-02T09:04:34-0400
user_str ='_'.join(input('Enter your string: ').split())
print(user_str)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS