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

Class10 AI Python Notes

This document provides an overview of Python programming for Class 10 AI, covering topics such as tokens, variables, data types, input/output, type conversion, operators, conditional statements, loops, functions, and lists. It includes examples and important programs like Even/Odd, Sum of n numbers, and Factorial. The content is aimed at introducing students to basic Python concepts and coding practices.

Uploaded by

abhinavgautam921
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)
2 views2 pages

Class10 AI Python Notes

This document provides an overview of Python programming for Class 10 AI, covering topics such as tokens, variables, data types, input/output, type conversion, operators, conditional statements, loops, functions, and lists. It includes examples and important programs like Even/Odd, Sum of n numbers, and Factorial. The content is aimed at introducing students to basic Python concepts and coding practices.

Uploaded by

abhinavgautam921
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 Notes (Class 10 AI – Code 417)

1. Introduction to Python

Python is a high-level, interpreted programming language used in AI and applications.

2. Tokens

Keywords: if, else, for, while

Identifiers: variable names

Literals: 10, "Hello"

Operators: +, -, *

3. Variables

Used to store data.

Example: x = 10

4. Data Types

int, float, str, bool

5. Input/Output

name = input("Enter name: ")

print(name)

6. Type Conversion

int(), float(), str()

7. Operators

Arithmetic: + - * / %

Relational: > < == !=

Logical: and, or, not

8. Conditional Statements

if condition:

statement

else:

statement
9. Loops

for loop and while loop

10. Functions

def add(a, b):

return a + b

11. Lists

nums = [1,2,3]

12. Important Programs

Even/Odd, Sum of n numbers, Factorial

You might also like