In this video we'll see how to replace an integers into words in a sentence. The question is giving as follows
Task:
Take a phrase and replace any instances of an integer from 0-10 and replace it with the English word that corresponds to that integers.
input: we are 4 friends
output: we are four frineds.
This is the simple way to solve this question in my opinion, but in case of any difficulty you can ask your query frequently.
Another interview question:
https://www.youtube.com/watch?v=YoJwmrvgct0
Thanks for watching :)
#python #interview #programs
Download
0 formats
No download links available.
Replace interges into words in a given phrase - python | NatokHD