Posts

Class 5 - Gallery Walk Projects

Image
To generate the project link, follow these steps: 1. Click the 'share' button 2. Click the 'Copy link to project' button 3.  The link will be automatically copied. Simply click on this link to open the sheet, then paste the link (Ctrl+V) into the project link column. Fill in all the other required details.  Separate sheets are provided for Sections A, B, and C. Make sure to use the correct sheet for your section (e.g., if you are from Section A, use the 'Class5A' sheet) before entering the details.

Class 7 & 8 - For Loop & While Loop Activities

ACTIVITY 1- For loop #for loop to work with a list fruits = ["apple","banana","orange","cherry","mango"] for f in fruits:     print(f) ACTIVITY 2- For loop #for loop to work with a list num_list = [1,4,7] for num in num_list:     print(num*num) ACTIVITY 3- For loop #for loop to work with a tuple - prints only even numbers in the tuple tuple1 = (1,2,4,5,7,8,12,45,63,87,9) for t in tuple1:     if (t%2)==0:         print(t) else:     print("these are the even numbers in the tuple") ACTIVITY 4- For loop #for loop to work with a list print("create sequence of numbers from 0-4") for i in range(5):     print(i)      print("create sequence of numbers from 2-5") for i in range(2,6):     print(i)      print("create sequence of numbers from 2-10 increment by 2") for i in range(2,11,2):     print(i) ACTIVITY 5- While loop count = 5 while count<15:     print(count) ...

Class 7 & 8 - Conditional Statement Python Activities

Conditional Statement Activities Simple If - Write a Python program that asks the user to enter a number. If the number is greater than 10, print "The number is greater than 10". If - else - Write a Python program that asks the user to enter a number. Use an if-else statement to check whether the number is odd or even, and print the result. Nested if - Write a Python program that asks the user to enter a number. Use a nested if statement to check if the number is positive, negative, or zero, and print the appropriate message. If-elif-else ladder - Write a Python program that asks the user to enter their marks. Use an if-elif-else ladder to determine the grade based on the following criteria and print the result Marks ≥ 90: Grade A Marks ≥ 75 and < 90: Grade B Marks ≥ 50 and < 75: Grade  Marks < 50: Fail