ποΈ 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.