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

Python Keywords and Words

Please ?
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)
18 views2 pages

Python Keywords and Words

Please ?
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 Mein Use Hone Wale English Words

1. Keywords (Python ke predefined words):

- and, or, not, if, elif, else, for, while, break, continue

- def, return, class, try, except, finally, with, as, pass

- import, from, global, nonlocal, lambda, yield, True, False, None

2. Commonly Used Functions:

- print(), input(), len(), range(), type(), int(), str(), float()

- list(), dict(), set(), tuple(), open(), close(), read(), write()

3. Data Types:

- int (integer), float (decimal), str (string), bool (True/False), None

- list (ordered collection), tuple (immutable list), dict (key-value pair), set (unique items)

4. Operators:

- Arithmetic: +, -, *, /, %, // (floor division), ** (power)

- Comparison: ==, !=, >, <, >=, <=

- Logical: and, or, not

- Assignment: =, +=, -=, *=, /=, %=, //=, **=

5. Modules and Libraries:

- math, random, os, sys, datetime, re (Regular Expressions)

- numpy, pandas, matplotlib, flask, django, requests, BeautifulSoup

6. Python-Specific Terms:

- Indentation: Code ko properly organize karne ke liye space dena.


- Syntax: Python ke rules jo code likhne ke liye follow karne hote hain.

- Comments: Code ke explanation ke liye (# se start hota hai).

- Exception: Code chalate waqt error (e.g., ZeroDivisionError, FileNotFoundError).

- Iterable: Lists, tuples, dictionaries, jinke elements ko loop ke through access kiya jata hai.

You might also like