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

Python Notes Class9

This document provides basic Python coding notes for Class 9, covering essential concepts such as print statements, variables, if-else statements, loops, and user input. It includes syntax examples and outputs for each concept to aid understanding. Additionally, it offers tips for exam preparation, emphasizing practice and logical thinking.

Uploaded by

kumarishristy73
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)
35 views2 pages

Python Notes Class9

This document provides basic Python coding notes for Class 9, covering essential concepts such as print statements, variables, if-else statements, loops, and user input. It includes syntax examples and outputs for each concept to aid understanding. Additionally, it offers tips for exam preparation, emphasizing practice and logical thinking.

Uploaded by

kumarishristy73
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

Python Coding Notes - Class 9 (Basic Level)

1. Print Statement

Syntax:

print("Your text")

Example:

print("Hello, World!")

Output:

Hello, World!

2. Variables

Variables store data.

Example:

name = "Supriya"

age = 14

print(name)

print(age)

3. If-Else Statement

Used to check conditions.

Example:

marks = 70

if marks >= 33:

print("Pass")

else:

print("Fail")

4. For Loop

Used to repeat code.

Example:

for i in range(1, 11):


Python Coding Notes - Class 9 (Basic Level)

print(i)

5. While Loop

Example:

i=1

while i <= 5:

print(i)

i += 1

6. Even Numbers from 1 to 100

Example:

for i in range(1, 101):

if i % 2 == 0:

print(i)

7. Input from User

Used to take user input.

Example:

name = input("Enter your name: ")

print("Hello", name)

Tips for Exam

- Practice basic programs daily

- Understand print, input, if-else, and loops

- Write and run programs on a computer if possible

- Don't panic, just focus on logic step by step

You might also like