Python2_ASTU.zip
36.2 MB
π Full installation of Python 2
#python
#python2
#install
#freshman
@negafantech
- including to Robot library
- modules to be copied to C:/python/Lib/site-packages is in modules folder
- Setup order video
#python
#python2
#install
#freshman
@negafantech
β€2
π Day 2 β Installing Python & Running Your First Code
Before we start writing Python programs, we need to set up our environment.
π» Step 1: Install Python
Download Python from the official website:
β‘οΈ https://www.python.org/downloads
Make sure to check:
β Add Python to PATH during installation (important!)
π§° Step 2: Choose Where to Write Code
You can use any of the following:
β IDLE (comes with Python)
β VS Code (very popular)
β PyCharm
β Jupyter Notebook (for data science)
For beginners, VS Code or IDLE is perfect.
βΆοΈ Step 3: Run Your First Python Code
Open your editor and type:
If you see:
Congrats! π€ You just ran your first Python program.
π Tip of the Day
Python uses indentation (spaces/tabs) instead of braces {} β so spacing matters!
π Mini Task
Comment below:
Which editor are you using?
#negafantech
#python
#programming
#day2
Before we start writing Python programs, we need to set up our environment.
π» Step 1: Install Python
Download Python from the official website:
β‘οΈ https://www.python.org/downloads
Make sure to check:
β Add Python to PATH during installation (important!)
π§° Step 2: Choose Where to Write Code
You can use any of the following:
β IDLE (comes with Python)
β VS Code (very popular)
β PyCharm
β Jupyter Notebook (for data science)
For beginners, VS Code or IDLE is perfect.
βΆοΈ Step 3: Run Your First Python Code
Open your editor and type:
print("Hello, Python!")If you see:
Hello, Python!Congrats! π€ You just ran your first Python program.
π Tip of the Day
Python uses indentation (spaces/tabs) instead of braces {} β so spacing matters!
π Mini Task
Comment below:
#negafantech
#python
#programming
#day2
π Day 3 β Variables in Python
β Creating a Variable
Example:
Here:
Python automatically detects the type β no need to declare it manually.
β Printing Variables
Output:
π‘ Why Variables Matter?
π§© Mini Task
Reply with your output! π
#negafantech
#Python
#programming
#day3
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
In Python, variables are used to store information so we can use it later in our program.
Think of a variable as a labeled box that holds data.
β Creating a Variable
Example:
name = "Alice"
age = 21
pi = 3.14Here:
"Alice" is a string
21 is an integer
3.14 is a float
Python automatically detects the type β no need to declare it manually.
β Printing Variables
print(name)
print(age)Output:
Alice
21π‘ Why Variables Matter?
Variables make programs dynamic and flexible. You can change their values without changing the entire code.
π§© Mini Task
Create two variables: your name and your favorite programming language, then print them.
Reply with your output! π
#negafantech
#Python
#programming
#day3
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
πDay 5 β User Input in Python
π§© How it Works
When you run this, Python waits for the user to type something.
π Important Point
So if you need numbers, you must convert them:
π Why User Input Matters
π Mini Task
Ask the user for:
Then print a sentence combining all three.
Drop your outputs! ππ
#day5
#python
#programming
#negafantech
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
Today we learn how programs interact with people!
The input() function allows users to enter data while the program is running.
π§© How it Works
name = input("Enter your name: ")
print("Hello", name)When you run this, Python waits for the user to type something.
π Important Point
Everything entered through input() is treated as text (string) by default.
So if you need numbers, you must convert them:
age = int(input("Enter your age: "))
print(age + 1)π Why User Input Matters
It helps you create dynamic programs like:
βοΈ calculators
βοΈ login systems
βοΈ forms
βοΈ interactive chatbots (π like the one you're learning to build someday)
π Mini Task
Ask the user for:
their name
their age
their country
Then print a sentence combining all three.
Drop your outputs! ππ
#day5
#python
#programming
#negafantech
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
π Question 1 Solution is Now Out! π
π ASTU Python2 Final Exam Solutions
The video for ASTU Python Final Exam β Question 1 is now available!
π₯ Step-by-step explanation
π₯ Important points highlighted
π₯ Easy to follow
Watch it here: Q1 Solution
Make sure to watch, like, share, and subscribe to support the channel β more questions are coming! π
Stay tuned! π»π
#python #astu #exam #solutions #negafantech
π ASTU Python2 Final Exam Solutions
The video for ASTU Python Final Exam β Question 1 is now available!
π₯ Step-by-step explanation
π₯ Important points highlighted
π₯ Easy to follow
Watch it here: Q1 Solution
Make sure to watch, like, share, and subscribe to support the channel β more questions are coming! π
Stay tuned! π»π
#python #astu #exam #solutions #negafantech
YouTube
π΄Question 1 (Output Evaluation) | ASTU Python2 Final Exam Solution |CSEg1101 | Python
Welcome to this Channel!
In this video, we break down a real ASTU (Adama Science and Technology University) Python 2 final exam problem and show how the code behaves during execution. We explain integer division, loop logic, and how the final output is producedβ¦
In this video, we break down a real ASTU (Adama Science and Technology University) Python 2 final exam problem and show how the code behaves during execution. We explain integer division, loop logic, and how the final output is producedβ¦
π Question on Dictionary Operations β Solution Video is Out! π
We just uploaded the solution for the Python final exam question where we build a dictionary using a loop and store cubes of numbers! π»π
If you're an ASTU freshman preparing for finals, donβt miss it β itβs explained step-by-step!
Make sure to Like, Share, and Subscribe to support the channel β more questions are coming! π
Watch it here
#python #astu #freshman #finalexam #solutions #negafantech
We just uploaded the solution for the Python final exam question where we build a dictionary using a loop and store cubes of numbers! π»π
If you're an ASTU freshman preparing for finals, donβt miss it β itβs explained step-by-step!
Make sure to Like, Share, and Subscribe to support the channel β more questions are coming! π
Watch it here
#python #astu #freshman #finalexam #solutions #negafantech
π ASTU Freshman β Python2 Final Exam Playlist is Here! ππ»
Hey freshmen students!
The final exam is tomorrow! β°
Iβve created a complete Python2 ASTU Final Exam Solutions playlist with step-by-step walkthroughs of real exam questions. πβ¨
π Check it out here
Boost your Python skills, and share with your friends so everyone is ready for tomorrow! π
#python #astu #freshman #finalexam #solutions #coding #programming #learnpython #negafantech
Hey freshmen students!
Iβve created a complete Python2 ASTU Final Exam Solutions playlist with step-by-step walkthroughs of real exam questions. πβ¨
π Check it out here
Boost your Python skills, and share with your friends so everyone is ready for tomorrow! π
#python #astu #freshman #finalexam #solutions #coding #programming #learnpython #negafantech
π Day 7 β Operators in Python
πΈ 1. Arithmetic Operators
Used for math
Example:
πΈ 2. Comparison Operators
Used to compare values (returns True/False)
Example:
πΈ 3. Logical Operators
Used for conditions and decision-making
Example:
π§© Mini Task
#day7
#python
#programming
#negafantech
Operators allow Python to perform actions such as calculations, comparisons, and logic-based decisions.
πΈ 1. Arithmetic Operators
Used for math
+ - * / % ** //
Example:
x = 10
y = 3
print(x + y) # 13
πΈ 2. Comparison Operators
Used to compare values (returns True/False)
== != > < >= <=
Example:
print(5 > 2) # True
πΈ 3. Logical Operators
Used for conditions and decision-making
and or not
Example:
print(True and False) # False
π§© Mini Task
Ask the user for two numbers and print:
βοΈ their sum
βοΈ which one is greater
#day7
#python
#programming
#negafantech
π₯°1