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

Assignment Questions

The document outlines a series of Python programming tasks for students, including creating a student information program, identifying data types, building a simple calculator, checking even or odd numbers, printing multiplication tables, calculating sums, and pattern printing. It also includes tasks using libraries like NumPy for array operations and Pandas for creating and displaying DataFrames. Finally, it involves creating visual representations of data through bar charts and line graphs.

Uploaded by

sahsoniakumari50
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Assignment Questions

The document outlines a series of Python programming tasks for students, including creating a student information program, identifying data types, building a simple calculator, checking even or odd numbers, printing multiplication tables, calculating sums, and pattern printing. It also includes tasks using libraries like NumPy for array operations and Pandas for creating and displaying DataFrames. Finally, it involves creating visual representations of data through bar charts and line graphs.

Uploaded by

sahsoniakumari50
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Q1.

Student Information Program Write a Python program that: • Takes


student name, age, and marks as input • Displays the output in a
formatted sentence.

Q2. Data Type Identification Write a Python program to: • Create variables
of type integer, float, string, list, and tuple • Print their values and
corresponding data types.

Q3. Simple Calculator using Function Write a Python function that takes
two numbers as input and returns: • Addition • Subtraction •
Multiplication • Division

Q4. Even or Odd using Function Write a function named check_even_odd()


that: • Accepts a number from the user • Checks whether the number is
even or odd • Displays the result

Q5. Write a Python program using a for and while loop to print the
multiplication table of a number entered by the user.

Q6. Write a Python program using a loop to calculate the sum of the first n
natural numbers.

Q7. Pattern Printing Write a Python program to print the following pattern
using loops:
*
**
***
****

Q8. Write a Python program using the NumPy library to: • Create an array
of 5 numbers • Find Sum, Mean, and Maximum value

Q9. Using the Pandas library: • Create a DataFrame containing names and
marks of 5 students • Display first 3 rows, column names, and average
marks

Q10. Simple Bar Chart and line graph: • Create a bar chart showing marks
of 5 students • Add title, X-axis label, and Y-axis label

You might also like