Python Coding (CLCODING)
7.76K subscribers
1.62K photos
4 videos
49 files
1.47K 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 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
What does the following Python code do?
arr = [10, 20, 30, 40, 50]
result = arr[1:4] print(result)
Anonymous Quiz
4%
[10, 20, 30]
39%
[20, 30, 40]
44%
[20, 30, 40, 50]
13%
[10, 20, 30, 40]
December 19, 2024
December 19, 2024
December 20, 2024
December 20, 2024