मराठी

Consider a list: list1 = [6, 7, 8, 9] What is the difference between the following operation on the list1: list1 *= 2 - Computer Science (Python)

Advertisements
Advertisements

प्रश्न

Consider a list:

list1 = [6, 7, 8, 9]

What is the difference between the following operation on the list1:

list1 *= 2
एका वाक्यात उत्तर

उत्तर

This statement will change the list1 and assign the list with repeated elements i.e [6, 7, 8, 9, 6, 7, 8, 9] to list1. 

shaalaa.com
List Operations
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 9: Lists - Exercise [पृष्ठ २०५]

APPEARS IN

एनसीईआरटी Computer Science [English] Class 11
पाठ 9 Lists
Exercise | Q 6. b. | पृष्ठ २०५
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×