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
You are on page 1/ 1
TUTORIAL QUESTIONS
1. What is Python? What are the benefits of using Python
2. What is a dynamically typed language? 3. Write a Python program to print the following string in a specific format 4. Twinkle, twinkle, little star, How I wonder what you are! Up above the world so high, Like a diamond in the sky. Twinkle, twinkle, little star, How I wonder what you are 5. What is the difference between intermediate mode and script mode? 6. Write a Python program that accepts the user's first and last name and prints them in reverse order with a space between them. 7. What are Datatypes? Discuss the standard data types in python. 8. Write a Python program to display the current date and time. 9. What are the rules for naming a variable in python? 10. Write a Python program that calculates the area of a circle based on the radius 11. What operators does python support? 12. Write a Python program that accepts the user's first and last name and prints them in reverse order with a space between them. 13. What is multiline statement? 14. Write a Python program that accepts an integer (n) and computes the value of n+nn+nnn 15. What operators does python support? 16. Write a Python program that prints the calendar for a given month and year. 17. What is Boolean Expression? 18. Write a Python program to get the volume of a sphere (when radius =7) 19. Explain briefly python break statement. 20. Write a Python program that will accept the base and height of a triangle and compute its area 21. What are Python's dictionaries? 22. Write a Python program to solve (x + y) * (x + y). 23. Discuss five benefits of using Python 24. Write a Python program to calculate the hypotenuse of a right angled triangle. 25. What are the key features of Python? 26. Write the Python program to sort an integer list using selection sort. 27. Describe in detail how exceptions are handled in Python. Give relevant examples. 28. What are global, protected and private attributes in Python? 29. Write a Python program to find the factorial of a number. 30. Write a Python program to find the largest element in a list. 31. Write a Python program to count the frequency of each element in a list 32. Write a Python program to check if a number is prime 33. Write a Python program to find the second largest number in a list. 34. Write a Python program that calculates the area of a circle based on the radius 35. What are the rules for naming a variable in python? 36. What operators does python support? 37. Write a Python program that accepts the user's first and last name and prints them in reverse order with a space between them. 38. What is multiline statement? 39. Write a Python program to display the current date and time. 40. Write a Python program that prints the calendar for a given month and year. 41. What is Boolean Expression? 42. Describe in detail how exceptions are handled in Python. Give relevant examples. 43. Write a Python program to get the volume of a sphere (when radius =7) 44. Explain briefly python break statement. 45. What are Python's dictionaries? 46. Write a Python program that will accept the base and height of a triangle and compute its area. 47. Discuss five benefits of using Python