Page 105 - 2611_SmartGPT Pro V(5.0) C-8
P. 105

e.   What is the difference between  the string concatenation  operator  and the string replication
                        operator? Explain with an example.

                        ______________________________________________________________________________
                        ______________________________________________________________________________





                                                                                                  21 st   #Critical Thinking
                 4.  Competency-based/Application-based questions.                             Century
                                                                                                 Skills  #Technology Literacy
                    a.   Neha and her cousins are 17 and 23 years old respectively. They have been arguing continuously
                        about their voting rights, so they decided to write a python function which gives a message whether
                        you are eligible to vote or not. (if above 18 years eligible to vote else not). Write a program for them.

                    b.   Mihika is given a task of finding average marks of all students in her class based on English, Maths,
                        Science and Social Science. Help her write a function Avg() which takes in values as students’ four
                        subject marks, calculates the average and return it to function call.






                          SDG Activity

                   Design a simple  computer network  to  track  and monitor  waste  production  and
                   recycling in your school. Create a program that collects data from different classrooms,
                   displays yearly wastage and suggests ways to reduce it.










                                                                                          21 st   #Creativity
                 LAB ACTIVITY                                                           Century   #Technology Literacy
                                                                                         Skills
                    Write a program to find the length of name entered by your friend.

                    Write a python function to convert Fahrenheit into Celsius.





                    FOR THE TEACHER

                   1.  Demonstrate the creation of functions to the students.
                   2.  Explain string in detail to the students.














                                                                                      Functions and String in Python  103
   100   101   102   103   104   105   106   107   108   109   110