Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 147 - 2609_Logicode
P. 147

    Write a python program to update the marks of Neha, in the list

                                student = ["Neha", 14, 85] from 85 to 99.
                                   Write the output of the given python program:

                                word = "Education"

                                reverse = ""

                                for ch in word:

                                      reverse = ch + reverse
                                print("Reversed Word:", reverse)
                                   Write the output of the given python program:

                                marks = []
                                for i in range(5):

                                    m = int(input("Enter marks: "))

                                    marks.append(m)
                                print("All Marks:", marks)

                                print("Highest:", max(marks))

                                print("Average:", sum(marks)/len(marks))

                           CAREER HERE
                     People who are experts in Python may pursue their career as a software developer.

                        FOR THE TEACHER

                       1.  Demonstration of creating strings and lists to the students.
                       2.  Explain List and String in detail to the students.

                                                                                               String and List in Python  145

| 142 143 144 145 146 147 148 149 150 151 152 |