📄️ 1. Write a Python program to display 'Hello World" Message on Screen
📄️ 2. Write a Python program to swap two variables
📄️ 3. Write a Python program to display the Fibonacci series
📄️ 4. Write a Python program to calculate sum of given number.
📄️ 5. Write a Python Program to print first prime number.
📄️ 6. Write a Python Program to Check Armstrong Number.
📄️ 7. Write a Python Program to Create a sequence of numbers using range datatype to display 1 to 30, with an increment of 2.
range(start, stop, step)
📄️ 8. Write a Python Program to Find area of circle.
📄️ 9. Write a Python program to implement Factorial series up to user entered number.
📄️ 10. Write a Python program to check the given number is palindrome or not.
📄️ 11. Write a python program to display ascending and descending order from given 10 numbers.
- The sort() method sorts the list ascending by default.
📄️ # 12.Write a Python program to print the duplicate elements of an myarrayay.
12.Write a Python program to print the duplicate elements of an myarrayay.
📄️ 13.Write Python programs to create functions and use functions in the program.
- A function can be defined as the organized block of reusable code, which can be called whenever required.
📄️ 14. Write Python programs to using lambda function.
Python Lambda function is known as the anonymous function that is defined without a name. Python allows us to not declare the function in the standard manner, i.e., by using the def keyword. Rather, the anonymous functions are declared by using the lambda keyword. However, Lambda functions can accept any number of arguments, but they can return only one value in the form of expression.
📄️ 15 Loading the module in Python code
---
📄️ # 16.Write a program to print following pattern.
16.Write a program to print following pattern.
📄️ 17. Write Python programs to implement a concept of list.
A list in Python is used to store the sequence of various types of data. Python lists are mutable type its mean we can modify its element after it created. However, Python consists of six data-types that are capable to store the sequences, but the most common and reliable type is the list.
📄️ 18. Write Python programs to implement a concept of tuples.
Python Tuple is used to store the sequence of immutable Python objects. The tuple is similar to lists since the value of the items stored in the list can be changed, whereas the tuple is immutable, and the value of the items stored in the tuple cannot be changed.
📄️ 19.Write a Python program to create nested list and display its elements.
Nested List Comprehensions are nothing but a list comprehension within another list comprehension which is quite similar to nested for loops.
📄️ 20.Write a Python program to using multiple inheritance.
Multiple Inheritance
📄️ 21. Write a Python program to read a file bca.txt and print the contents of file along with number of vowels present in it.
First Create a File Name With practical_21part2.txt And Write Like This
📄️ 22.Write a Python program for Error Handling.
- The try block lets you test a block of code for errors.
📄️ 23. Write a Python program for connection with my Sql and display all record from the database.
- We need "MySQL Connector" module to access MySQL databases.
📄️ 24. Write a Python program for modified record, display record and delete record from the database.
- We need "MySQL Connector" module to access MySQL databases.
📄️ 25. Write a Python program for search record from the database.
- We need "MySQL Connector" module to access MySQL databases.