हिंदी

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
एक पंक्ति में उत्तर

उत्तर

The statement will print the elements of the list twice, i.e [6, 7, 8, 9, 6, 7, 8, 9]. However, the list1 will not be altered.

shaalaa.com
List Operations
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Lists - Exercise [पृष्ठ २०५]

APPEARS IN

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

Englishहिंदीमराठी


      Forgot password?
Use app×