Good Luck!

Congratulation.


advanced python

Advanced Python Quiz

1 / 40

What is the output?

2 / 40

What is the output?

3 / 40

What is the output?

4 / 40

What is the output?

5 / 40

What is the output?
my_list = [1,2,1,2,3,4,5,1]
print(my_list.count(1))

6 / 40

How do you shuffle a list of items in Python?

my_list = [1, 2, 3, 4, 5]
What is the best way to shuffle above list ?

7 / 40

What is the output of the following code?

my_list = ['h','e','l','l','o']
print(len(my_list))

8 / 40

What is the output of the following ?

9 / 40

From below my_list, how do you remove "Hello"?

my_list = ["Hello", "World"]

10 / 40

What will be the output?

11 / 40

What is the output?

12 / 40

# What is the output of the following code?
my_string = "HelloWorld"
print(my_string[::-1])

13 / 40

Which of the following will create a list?

14 / 40

What will below code output ?

15 / 40

What is the output ?

my_list = [1,2,3,4,5,6]
for i in range(len(my_list)):
       my_list[i-1] = my_list[i]
print(my_list)

16 / 40

What is the output of following code?

17 / 40

What will following code print?

my_list = [1, 2, 3]*2
print(my_list)

18 / 40

What is the output of the following code?

print(0xA + 0xB + 0xC)

19 / 40

What is the output of following code?

20 / 40

What is the output?

21 / 40

What is the output ?

22 / 40

What will be the output of below code?

23 / 40

What will below code print?

24 / 40

What will be the output of the following code?

25 / 40

What will the below code print?

26 / 40

Lamda is a statement?

27 / 40

What is the output?

28 / 40

What will below code print?

29 / 40

# What is the output of the following code?
print(r"\nhello")

30 / 40

What is the output?

31 / 40

What will following code print?

32 / 40

What is the output?

33 / 40

What is the output ?

34 / 40

# What is the output of the following code?
print("hello"[2:])

35 / 40

What will be the output?

36 / 40

Which of the following command will insert number 6 in the third position of my_list = [1, 2, 3, 4, 5] ?

37 / 40

What will following code output?

my_list = [0.5 * x for x in range(0,3)]
print(my_list)

38 / 40

What is the output?

39 / 40

What is the output?

40 / 40

What will be the output?

Your score is

The average score is 42%

0%

Scroll to Top