0% found this document useful (0 votes)
14 views15 pages

Python Programs for Beginners

The document outlines a series of Python programming tasks, including swapping variable values, checking student grades, printing natural and even numbers, calculating simple interest, and working with lists. It also includes tasks for statistical calculations using NumPy, displaying charts, and reading CSV files and images. Each program is followed by an indication of its expected output.

Uploaded by

akshat082011
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)
14 views15 pages

Python Programs for Beginners

The document outlines a series of Python programming tasks, including swapping variable values, checking student grades, printing natural and even numbers, calculating simple interest, and working with lists. It also includes tasks for statistical calculations using NumPy, displaying charts, and reading CSV files and images. Each program is followed by an indication of its expected output.

Uploaded by

akshat082011
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

PROGRAM 1

Write a Python Program to swap values of two variables without using third variable

OUTPUT
PROGRAM 2
Write a Python Program to check grade of student and print result accordingly

OUTPUT
PROGRAM 3
Write a Python Program to print first 10 natural numbers using while loop

OUTPUT
PROGRAM 4

Write a Python Program to print first 10 even numbers

OUTPUT
PROGRAM 5

Write a Python Program to print table of any number

OUTPUT
PROGRAM 6
Write a Python Program to calculate Simple Interest

OUTPUT
PROGRAM 7

Write a Python Program to create list

OUTPUT
PROGRAM 8
Write a python program to add the elements of the two lists.

OUTPUT
PROGRAM 9
Write a python program to calculate mean, median and mode using NumPy

OUTPUT
PROGRAM 10
Write a python program to display line chart from (2,5) to (9,10).

OUTPUT
PROGRAM 11

Write a python program to display a scatter chart for the following points (2,5),(9,10),(8,3),(5,7),(6,18).

OUTPUT
PROGRAM 12

Read the csv file saved in your system and display 10 rows.

OUTPUT
PROGRAM 13
Read csv file saved in your system and display its information

OUTPUT
PROGRAM 14

Write a python program to read an image and display using Python

OUTPUT
PROGRAM 15
Write a python program to read an image and identify its shape using Python

OUTPUT

Image shape: (300, 400, 3)

You might also like