Write a Python program to add 'ing' at the end of a given string (length should be at least 3). If the given string already ends with 'ing' then add 'ly' instead. If the string length of the given string is less than 3, leave it unchanged.
Sample Input Expected Output
'abc' 'abcing'Ā
'string' 'stringly'
Watch the full Python tutorial series in Hindi here:
https://www.youtube.com/playlist?list=PLXoGFuxjOhF8BoGSjX_aIWWzby5cAHw5o
Watch Programming Practice questions complete playlist:
https://www.youtube.com/playlist?list=PLXoGFuxjOhF9M3Igxdh0MFKvgLQQ08yFZ
Watch complete functions playlist:
https://www.youtube.com/playlist?list=PLXoGFuxjOhF-HSSwanSjuzlpHdv5HGMQb
Python Tutorial in English:
https://www.youtube.com/watch?v=f7RLlF7HOuc&list=PLbWugmIR3FS4FGExKrnbwRH0DlsKVhQP-
š Subscribe for more Python tips and tutorials!
š± Connect with me on social media!
šø Instagram: Follow me on Instagram for behind-the-scenes content, coding inspiration, and more.
https://www.instagram.com/codewithdaneyal/
š¼ LinkedIn: Connect on LinkedIn to stay in touch and expand your professional network.
https://www.linkedin.com/in/mohd-daneyal-hasan-lari-282539105/
š GitHub: Check out my GitHub for all the code examples, projects, and repositories from my tutorials.
https://github.com/mohddaneyal
š Facebook: Join my Facebook group for discussions, Q&A, and community support on all things Python!
https://www.facebook.com/daneyallari
š§ Email: For business inquiries, reach me at
codewithdaneyal@gmail.com
daneyallari@gmail.com
Please like, comment, share and subscribe.
#CodeWithDaneyal #python #pythonprogramming #pythoninhindi #pythontutorial #pythonforbeginners