0% found this document useful (0 votes)
3 views2 pages

Python Output Questions 50

The document contains a list of 50 Python output questions, each asking for the result of a specific Python expression or statement. The questions cover various Python concepts such as arithmetic operations, string manipulation, list indexing, boolean expressions, and list comprehensions. Each question is followed by a request to print the output of the given code.

Uploaded by

mayankchattha446
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Python Output Questions 50

The document contains a list of 50 Python output questions, each asking for the result of a specific Python expression or statement. The questions cover various Python concepts such as arithmetic operations, string manipulation, list indexing, boolean expressions, and list comprehensions. Each question is followed by a request to print the output of the given code.

Uploaded by

mayankchattha446
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

50 Python Output Questions

1. What is the output of: print(2**3**2)

2. What is the output of: print('Hello' * 3)

3. What is the output of: a=[1,2,3]; print(a[-1])

4. What is the output of: print((1,2,3)[::-1])

5. What is the output of: print({1,2,3,2,1})

6. What is the output of: a='python'; print(a[2:5])

7. What is the output of: print(10//3)

8. What is the output of: print(5>3 and 2<1)

9. What is the output of: print(bool(''))

10. What is the output of: print([i*i for i in range(3)])

11. What is the output of: print(2**3**2)

12. What is the output of: print('Hello' * 3)

13. What is the output of: a=[1,2,3]; print(a[-1])

14. What is the output of: print((1,2,3)[::-1])

15. What is the output of: print({1,2,3,2,1})

16. What is the output of: a='python'; print(a[2:5])

17. What is the output of: print(10//3)

18. What is the output of: print(5>3 and 2<1)

19. What is the output of: print(bool(''))

20. What is the output of: print([i*i for i in range(3)])

21. What is the output of: print(2**3**2)

22. What is the output of: print('Hello' * 3)

23. What is the output of: a=[1,2,3]; print(a[-1])

24. What is the output of: print((1,2,3)[::-1])

25. What is the output of: print({1,2,3,2,1})

26. What is the output of: a='python'; print(a[2:5])

27. What is the output of: print(10//3)

28. What is the output of: print(5>3 and 2<1)

29. What is the output of: print(bool(''))

30. What is the output of: print([i*i for i in range(3)])


31. What is the output of: print(2**3**2)

32. What is the output of: print('Hello' * 3)

33. What is the output of: a=[1,2,3]; print(a[-1])

34. What is the output of: print((1,2,3)[::-1])

35. What is the output of: print({1,2,3,2,1})

36. What is the output of: a='python'; print(a[2:5])

37. What is the output of: print(10//3)

38. What is the output of: print(5>3 and 2<1)

39. What is the output of: print(bool(''))

40. What is the output of: print([i*i for i in range(3)])

41. What is the output of: print(2**3**2)

42. What is the output of: print('Hello' * 3)

43. What is the output of: a=[1,2,3]; print(a[-1])

44. What is the output of: print((1,2,3)[::-1])

45. What is the output of: print({1,2,3,2,1})

46. What is the output of: a='python'; print(a[2:5])

47. What is the output of: print(10//3)

48. What is the output of: print(5>3 and 2<1)

49. What is the output of: print(bool(''))

50. What is the output of: print([i*i for i in range(3)])

You might also like