Basics of Python_assignment
Basics of Python_assignment
Assignment I
1. Differentiate between immediate mode and script mode of python?
2. Define and explain importance of Python? Describe its features and applications?
3. What is an IDE? Write the common features of IDE. Why do Developers Use IDE?
Describe the types of IDEs.
4. Explain various module and package in Python?
Assignment II
5. Explain the syntax of the following statements
(i) for loop (ii) while loop
(iii) if - else (iv) if-elif-else
6. Give a short note on assigning values to variables?
7. Write a Python program to print sum of first 60 non-prime numbers.
8. Explain the Identifiers, Keywords, Statements, Expressions, and Variables in Python
programming language with examples.
Assignment III
9. What are the core data types supported by Python? Explain how to convert one type into
another, with examples.
10. Give a comparison between lists, tuples, dictionaries and set.
11. Write a Python program that sorts a dictionary by its values.
12. Write a Python code to find the sum of negative numbers, positive numbers and print
them. Also, find the average of all the numbers and numbers above average.
13. Explain about string formatting operator with example
14. Explain about different pen, color and fill methods available in turtle module.
Assignment IV
15. Write Python Program to reverse a number and also find the Sum of digits in the reversed
number. Prompt the user for input.
16. Mention the different types of operators, descriptions and suitable examples related to
python Logical, Membership & Identity operators.
17. Discuss about Python operators precedence with example.
18. Write a Python script to convert given decimal number to binary using recursion.
Assignment V
19. Give the applications & further extensions of python functions & syntax. Also explain
data analysis packages.
20. Develop a Python script to find the square root of a number using functions?
21. Write a Python program that interchanges the first and last characters of a given string.
22. Explain how to create a user defined module in Python