Skip to content

Areeb-7/Python-Lab-Manual

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

program1.1:- Write a program to compute Simple Interest. program1.2:- Write a program to perform arithmetic, Relational operators. program1.3:- Write a program to find whether a given no is even & odd. program1.4:- Write a program to print first n natural number & their sum. program1.5:- Write a program to determine whether the character entered is a Vowel or not. program1.6:- Write a program to find whether given number is an Armstrong Number. program1.7:- Write a program using for loop to calculate factorial of a No. program1.8(1,2,3):- Write a program to print the following pattern

program2.1:- Write a program that define the list of defines the list of define countries that are in BRICS. program2.2:- Write a program to traverse a list in reverse order. program2.2.1:- By using Reverse method. program2.2.2:- By using slicing program2.3:- Write a program that scans the email address and forms a tuple of username and domain. program2.4:- Write a program to create a list of tuples from given list having number and add its cube in tuple. i/p: c= [2,3,4,5,6,7,8,9] program2.5:- Write a program to compare two dictionaries in Python?(By using == operator) program2.6:- Write a program that creates dictionary of cube of odd numbers in the range. program2.7:- Write a program for various list slicing operation.

program3.1:- Write a program to extend a list in python by using given approach. i. By using + operator. ii. By using Append () iii. By using extend () program3.2:- Write a program to add two matrices. program3.3:- Write a Python function that takes a list and returns a new list with distinct elements from thefirstlist. 3.4 Write a program to Check whether a number is perfect or not. 3.5 Write a Python function that accepts a string and counts the number of upper- and lower-case letters. string_test= "Today is My Best Day"

program4.1:- Write a program to Create Employee Class & add methods to get employee details & print. program4.2:- Write a program to take input as name, email & age from user using combination of keywords argument and positional arguments (*args and**kwargs) using function, program4.3:- Write a program to admit the students in the different Departments(pgdm/btech) and count the students. (Class, Object and Constructor). program4.4:- Write a program that has a class store which keeps the record of code and price of product display the menu of all product and prompt to enter the quantity of each item required and finally generate the bill and display the total amount. program4.5:- Write a program to take input from user for addition of two numbers using (single inheritance). program4.6:- Write a program to create two base classes LU and ITM and one derived class. (Multiple inheritance). program4.7:- Write a program to implement Multilevel inheritance, Grandfather-->Father-->Child to show property inheritance from grandfather tochild. program4.8:- Write a program Design the Library catalogue system using inheritance take base class (library item) and derived class (Book, DVD & Journal) Each derived class should have unique attribute and methods and system should support Check in and check out the system. (Using Inheritance and Method overriding)

program5.1:- Write a program to create my_module for addition of two numbers and import it in main script. program5.2:- Write a program to create the Bank Module to perform the operations such as Check the Balance, withdraw and deposit the money in bank account and import the module in main file. program5.3:- Write a program to create a package with name cars and add different modules (such as BMW, AUDI, NISSAN) having classes and functionality and import them in main file cars.

program6.1:- Write a program to implement Multithreading. Printing “Hello” with one thread & printing “Hi” with another thread.

program7.1:- Write a program to use ‘whether API’ and print temperature of any city, also print the sunrise and sunset times for the same humidity of that area. program7.2:- Write a program to use the ‘API’ of crypto currency.

About

for me

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages