Python Coding (CLCODING)
9.4K subscribers
1.69K photos
4 videos
49 files
1.52K 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
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
What will be the output of the following code?
import numpy as np
arr = np.array([1, 2, 3, 4]) result = arr * arr[::-1] print(result)
Anonymous Quiz
35%
[1, 4, 9, 16]
46%
[4, 6, 6, 4]
11%
[4, 6, 6]
9%
[4, 4, 4, 4]
December 20, 2024
December 21, 2024
December 22, 2024