1 00:00:02,060 --> 00:00:02,800 Hello. 2 00:00:02,890 --> 00:00:12,380 Here is an exercise for you to practice on strings and the first question is request a string so in 3 00:00:12,390 --> 00:00:18,580 the first question you need to write a program that accepts a string from the user. 4 00:00:19,570 --> 00:00:25,320 And then reverses the string and returns the new String. 5 00:00:25,330 --> 00:00:31,810 Say for example the user has a entered the string hello. 6 00:00:31,990 --> 00:00:41,370 You need to devise these characters in the string and display the new string so the new string should 7 00:00:41,370 --> 00:00:45,530 be like this. 8 00:00:45,550 --> 00:00:48,260 Let's go to the second exercise. 9 00:00:48,490 --> 00:00:51,850 Count the words and characters in a given string. 10 00:00:52,270 --> 00:01:00,220 So you need to write a python program that calculates the number of words and the number of characters 11 00:01:00,220 --> 00:01:02,320 present in a given string. 12 00:01:02,320 --> 00:01:07,360 Say for example you have assigned the string. 13 00:01:07,480 --> 00:01:10,340 How are you to a string. 14 00:01:10,390 --> 00:01:20,890 You need to count the number of words and characters in this particular string which also include spaces 15 00:01:21,610 --> 00:01:23,590 going to the next question. 16 00:01:23,590 --> 00:01:32,890 It is done part of an input string so you need to write a program that accepts a string from the user. 17 00:01:32,920 --> 00:01:42,710 The length of the string should be an odd numbered and also greater than 7 and you need to write it 18 00:01:42,720 --> 00:01:48,700 on a string made of the middle three characters of the given string. 19 00:01:48,780 --> 00:01:59,070 So for example if your input string is this happiness your output string should be the middle three 20 00:01:59,070 --> 00:02:02,940 characters of your input string. 21 00:02:03,100 --> 00:02:04,200 Next question. 22 00:02:04,490 --> 00:02:07,050 Edit done a string with maximum length. 23 00:02:07,450 --> 00:02:13,450 So you need to write a program that accepts draw strings as input from the user. 24 00:02:14,520 --> 00:02:21,000 And then you need to put in the string with the maximum land in the output in case the two strings have 25 00:02:21,000 --> 00:02:22,550 the same length. 26 00:02:22,560 --> 00:02:26,540 Then the program should print board the strings. 27 00:02:26,610 --> 00:02:30,780 Line by line or one after the other in the output. 28 00:02:32,120 --> 00:02:35,930 So go ahead and practice these exercises. 29 00:02:35,930 --> 00:02:36,500 Good luck.