0% found this document useful (0 votes)
9 views14 pages

Python Basics - Let's Code The Fun Way Class 11

Python was developed by Guido van Rossum in 1989 and is known for its simplicity and beginner-friendly syntax. Key concepts include variables, data types, operators, conditionals, and loops, which make coding interactive and fun. Python is widely used in various applications, including games, apps, AI, and websites.

Uploaded by

apurwa19092007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views14 pages

Python Basics - Let's Code The Fun Way Class 11

Python was developed by Guido van Rossum in 1989 and is known for its simplicity and beginner-friendly syntax. Key concepts include variables, data types, operators, conditionals, and loops, which make coding interactive and fun. Python is widely used in various applications, including games, apps, AI, and websites.

Uploaded by

apurwa19092007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Python Basics – Let’s Code the

Fun Way! 🐍✨
Class 11 IP | Presented by
Apurwa Chouhan
Who developed python?

 Guido van Rossum in 1989

 Officially released in 1991.

 Named after the British comedy


show “Monty Python’s Flying Circus”,
not the snake!
Why python?

• • Simple & beginner-friendly


• • Looks like English
• • Used in games, apps, AI, websites
• • When you learn Python, even your
computer smiles 🐍💻
Your First Program
• print("Hello, World!")

• Output: Hello, World!

• ➡ Example of the simplest Python program.


Variables

• Variables are containers that store data

• Example:
• name = "ram"
• age = 5

• ➡ A variable is a name given to a value.


Data Types

• Different kinds of values:


• • int → numbers (10, 20)
• • float → decimal numbers (3.14)
• • str → text ('hello')
• • bool → True/False

• ➡ Guess the data type of 123 and "123"


Keywords in python

Reserved words, have


special meaning.

Examples: if, else, while, for,


True, False, break, continue
Input from user

• We can take input from the user:

• name = input("Enter your name: ")


• print("Welcome", name)

• ➡ This allows interaction with the program


Operators

• Operators are used to perform calculations:


• + → Addition
• - → Subtraction
• * → Multiplication
• / → Division

• ➡ Example: 10 - 3 = 7
Condition – (if- else)

• Used to make decisions:


• marks = 75
• if marks >= 33:
• print("You Passed!")
• else:
• print("Better luck next time")

• Output:
• You Passed! 🎉
Loops
• Loops repeat actions:

• for i in range(3):
• print("Hello")

• ➡ Output:
• Hello
• Hello
• Hello
Conclusion
• Summary:
• • Python is simple and powerful
• • First program: print()
• • Variables and Data Types
• • Operators
• • If-Else for decisions
• • Loops for repetition

• ➡ Python makes coding easy and fun! 🐍


Fun Facts

• Did you know?


• Python is one of the fastest-growing
languages.
• Companies like Google, Netflix, Instagram,
NASA use python.
Thank You ✨

You might also like