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

Python Basics: Lesson 1 Overview

This document introduces Python basics, covering the print statement, variables, if-else decision making, loops, and user input. It provides example code snippets for each concept and encourages practice by creating a new Python project on Replit. The lesson concludes with a prompt for the next lesson on operators, lists, and functions.

Uploaded by

nibin8105
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)
6 views2 pages

Python Basics: Lesson 1 Overview

This document introduces Python basics, covering the print statement, variables, if-else decision making, loops, and user input. It provides example code snippets for each concept and encourages practice by creating a new Python project on Replit. The lesson concludes with a prompt for the next lesson on operators, lists, and functions.

Uploaded by

nibin8105
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 Basics Lesson 1: Hello Python!

1. Print Statement

Python- screen- :

print("Hello, Amala Rose!")

print("Welcome to Ethical Hacking!")

2. Variables ( )

name = "Amala"

age = 21

is_hacker = True

print("Name:", name)

print("Age:", age)

print("Is hacker?", is_hacker)

3. If-Else (decision making)

age = 21

if age >= 18:

print("You are eligible to learn hacking.")

else:

print("You are too young!")


4. Loops (repeat actions)

for i in range(1, 6):

print("Hack attempt:", i)

5. Input (user input)

name = input("Enter your name: ")

print("Hello", name)

Practice :

Go to [Link] Create new Python project Paste above code and Run it!

Ready , Lesson 2 (Operators, Lists, Functions, etc.) .

You might also like