Solution Exercise 22
Exercise 22 Write a program in Python, which returns the first word of a given text. Example for the text: t = 'Python is a wonderful programming language', the program must return Python Solution # define a string ss = "Learning Python in my-course.net"# initialize the first word at empty stringfirst=""# initialize a counteri =…