0% found this document useful (0 votes)
12 views1 page

Python Lab Question

The document contains a list of programming tasks for a Python lab course at Bakhtiapur College of Engineering for 6th semester C.S.E students. The tasks include demonstrating data types, creating a simple calculator, manipulating lists, and implementing functions. Additionally, it includes a question on using linear regression to predict house prices based on area.

Uploaded by

xyz18v
Copyright
© © All Rights Reserved
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
0% found this document useful (0 votes)
12 views1 page

Python Lab Question

The document contains a list of programming tasks for a Python lab course at Bakhtiapur College of Engineering for 6th semester C.S.E students. The tasks include demonstrating data types, creating a simple calculator, manipulating lists, and implementing functions. Additionally, it includes a question on using linear regression to predict house prices based on area.

Uploaded by

xyz18v
Copyright
© © All Rights Reserved
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

BAKHTIARPUR COLLEGE OF ENGINEERING

PYTHON LAB
SEMESTER:- 6TH BRANCH:- C.S.E
DATE:-20/09/2024
Questions.
Q1. Write a demonstrate different number datatypes in Python.
Q2. Write a Program in Python to make a Simple caculator.
Q3. Write a Program to print the current date in the following format
“Mon May 29 04:51:24 IST 2024”
Q4. Write a Program in Python to reverse the digit of the all numbers in a list.
Q5. Write a Program to create 2 new list odd and even list from the given list.
Q6. Write a Program to Print list of Alphabet With help of count whether vowel or consonant, if vowel found
replace with 8.
Q7. Write a Python Program toCreate Tuple with different Datatypes.
Q8. My_list=[‘a’,’b’,’c’,5,6,7,8,9,11,14,’p’,’i’], write a program to print all vowel, consonant and digit are
separate and check how many digits are prime, even and odd.
Q9. Write a Python Program to Revers Order.
Ex:- “1234abcd” String
“dcba4321”output
Q10. Write a Python Function that takes two list and return if they have at least one common member.
Q11. Write a python Function called compare which takes two string s1 and s2 and an integer n as arguments.
The Function should return True if First n characters of both the string are same else the funtion should return
False.
Q12. Write a Python Program to Copy a text file to another file.
Q13. Write a Program to Count the total no of words present in Text file and count the number of “the” present
in txt file and Replace it with “THE”.
Q14. Write a Program to Display following Output.
SHIFT
HIFTS
IFTSH
FTSHI
TSHIF
SHIFT
Q15. Consider the Home Price in the following table. Find the Price of House When the area is 2750 sq. ft.. Use
Linear Regression Model to solve this Problem.
Area Price($)
2000 50000
2300 57000
2700 63000
3200 71000
3700 82000
4300 87000
Q16. Write a Python Program to Print the Following Patterns.

Qa. Qb. Qc.

You might also like