0% found this document useful (0 votes)
30 views2 pages

Ict Prac

The document contains instructions for a Python programming worksheet assignment on basic concepts like procedures, functions, lists, files, and random numbers. Students are asked to write Python programs that use procedures to check if a number is even or odd, create and print a list of colors, print a random number between 30-50, add the first 10 numbers, calculate the factorial of a number, write and read from a text file, and find the largest of two numbers input by the user using a procedure.

Uploaded by

Pehel Mehta
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)
30 views2 pages

Ict Prac

The document contains instructions for a Python programming worksheet assignment on basic concepts like procedures, functions, lists, files, and random numbers. Students are asked to write Python programs that use procedures to check if a number is even or odd, create and print a list of colors, print a random number between 30-50, add the first 10 numbers, calculate the factorial of a number, write and read from a text file, and find the largest of two numbers input by the user using a procedure.

Uploaded by

Pehel Mehta
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/ 2

D Y PATIL INTERNATIONAL SCHOOL

2022 - 2023

Name of the Student: ____________________________ Roll No: ___ Grade: 8 Date:_________

Subject: ICT Topic: Chapter 1 Worksheet No : ___

Q1 Write the python program for the following


to create a procedure to check if the number is even or odd

Write a python program to create a list to store colors. Stores 5 values in the list. Print the list
using for loop. Add a value using user input to the list. Calculate the length and display the
length of the list

To print a random number from 30 - 50

To add the first 10 numbers using procedures

To display factorial of a number using procedures with parameters

1
D Y PATIL INTERNATIONAL SCHOOL
2022 - 2023

Write a python program to create a file name as “your travel destination.txt”. Write two
sentences in the file and read from the file

Ask the user to enter two number. Create a procedure with parameters to take the two
numbers as input. print the largest number using procedure.

You might also like