Python Coding
7.52K subscribers
1.62K photos
4 videos
49 files
1.46K links
Learn Python to automate your things. We are here to support you. Ask your question

Reach us - info@clcoding.com

https://whatsapp.com/channel/0029Va5BbiT9xVJXygonSX0G
Download Telegram
December 14, 2024
December 14, 2024
December 15, 2024
December 16, 2024
What will the following code output?
a = [1, 2, 3]
b = a[:] a[1] = 5 print(a, b)
Anonymous Quiz
15%
[1, 5, 3] [1, 5, 3]
25%
[1, 2, 3] [1, 2, 3]
35%
[1, 5, 3] [1, 2, 3]
25%
Error
December 16, 2024
December 16, 2024
December 17, 2024
What will be the output of the following Python code?
t = (1, [2, 3], 4)
t[1][0] = 100 print(t)
Anonymous Quiz
4%
(1, [2, 3], 4)
24%
(100, [2, 3], 4)
43%
(1, [100, 3], 4)
30%
Error: Tuples are immutable
December 17, 2024
What_is_the_output_of_the_following_Python_code_2024_12_17T174846.png
104.4 KB
December 17, 2024
What will the following code output?

import pandas as pd data = {'Name': ['Alice', 'Bob'], 'Age': [25, 30]} df = pd.DataFrame(data) print(df.shape)
Anonymous Quiz
40%
[2, 2]
16%
(1, 2)
9%
(2, 1)
35%
(2, 2)
December 17, 2024
December 18, 2024
What will the following Python code output?
arr = [1, 3, 5, 7, 9]
res = arr[::-1][::2] print(res)
Anonymous Quiz
33%
[9, 7, 5, 3, 1]
46%
[9, 5, 1]
15%
[1, 5, 9]
6%
[3, 7, 9]
December 18, 2024
December 18, 2024
What_is_the_output_of_the_following_Python_code_2024_12_19T123427.png
109.5 KB
December 19, 2024