Python List Part-2

Q-1.Write a Python program to remove duplicates from a List. Input: [10,20,20,20,30,50] Output: 20 is duplicate 20 is duplicate [10, 20, 30, 50] Python Code: Q-2. Write a Python program to check a List is empty or not. Input:[] Output:list is empty Python Code: Q-3.Write a Python program to get Read more…

Python List Part-1

Q-1. Write a Python program to sum all the items in a List. Input: [1,2,3,0,79,7]Output: 92 (Sum of elements) Python Code: Q-2. Write a Python program to get the largest number from a List. Input:[1,8,3,9,4] Output: 9(largest element in list) Python Code: Q-3. Write a Python program to get the Read more…

Insert math as
Block
Inline
Additional settings
Formula color
Text color
#333333
Type math using LaTeX
Preview
\({}\)
Nothing to preview
Insert