π 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
π§© Bonus Post: Interpreted vs Compiled Languages
π
πΉ Compiled Language
βοΈ Faster execution
βοΈ Errors detected at compile time
βοΈ Produces an executable file
Examples: C, C++, Rust, Go
πΉ Interpreted Language
βοΈ Easier to test & debug
βοΈ More flexible & portable
βοΈ Usually slower than compiled languages
Examples: Python, JavaScript, Ruby, PHP
π§ Key Insight
Compiled = βtranslated fully before runningβ
Interpreted = βtranslated as it runsβ
π Where does Python fit?
π¬ Question for you
Comment your thoughts! π
YOUTUBE | TELEGRAM | TIKTOK
When learning programming, youβll often hear βinterpreted languageβ and βcompiled language.β Hereβs the difference
π
πΉ Compiled Language
A compiled language uses a compiler to translate the entire code into machine language before execution.
βοΈ Faster execution
βοΈ Errors detected at compile time
βοΈ Produces an executable file
Examples: C, C++, Rust, Go
πΉ Interpreted Language
An interpreted language uses an interpreter to translate and run code line-by-line during execution.
βοΈ Easier to test & debug
βοΈ More flexible & portable
βοΈ Usually slower than compiled languages
Examples: Python, JavaScript, Ruby, PHP
π§ Key Insight
Compiled = βtranslated fully before runningβ
Interpreted = βtranslated as it runsβ
π Where does Python fit?
Python is generally considered an interpreted language, but internally it first compiles to bytecode (.pyc) and then the Python Virtual Machine interprets it. This is why Python is flexible and beginner-friendly.
π¬ Question for you
Which type do you think is better for beginners β compiled or interpreted?
Comment your thoughts! π
YOUTUBE | TELEGRAM | TIKTOK
Telegram
Negafan Tech
TikTok: https://www.tiktok.com/@negafantech?_t=ZM-8y3R9gr5fnE&_r=1 ||| https://www.youtube.com/channel/UCPwKO_smqOqduI5qWJuM8aA ||| DHALOOTAAF GALAA QABNA!
π₯°1
π 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 4 β Data Types in Python
Here are some of the most common beginner-friendly types:
πΉ 1. String (str)
Used for text
πΉ 2. Integer (int)
Whole numbers
πΉ 3. Float (float)
Decimal numbers
πΉ 4. Boolean (bool)
True or False values
πΉ 5. None Type
Represents no value
π‘ Why Data Types Matter?
π§© Mini Task
Share your outputs below! π
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
In Python, every value has a data type. Data types tell Python what kind of data it is working with.
Here are some of the most common beginner-friendly types:
πΉ 1. String (str)
Used for text
name = "Alice"
πΉ 2. Integer (int)
Whole numbers
age = 20
πΉ 3. Float (float)
Decimal numbers
pi = 3.14
πΉ 4. Boolean (bool)
True or False values
is_student = True
πΉ 5. None Type
Represents no value
data = None
π‘ Why Data Types Matter?
β Helps Python understand how to store and operate on data
β Enables validation, calculations, decisions, and formatting
β Makes your code logical and predictable
π§© Mini Task
Create variables using at least 3 different data types and print them out.
Share your outputs below! π
π¬ Join the Telegram community π
π₯ Follow on TikTok π
πΊ Watch on YouTube π
Negafan Tech pinned Β«π Day 4 β Data Types in Python In Python, every value has a data type. Data types tell Python what kind of data it is working with. Here are some of the most common beginner-friendly types: πΉ 1. String (str) Used for text name = "Alice" πΉ 2. Integer (int)β¦Β»
π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 π
Negafan Tech pinned Β«πDay 5 β User Input in Python 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β¦Β»
π 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
Negafan Tech
π 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β¦
YouTube
Question 1 (Code Writing)| ASTU Python Final Exam Solutions | Introduction to Computing | Python
Welcome to this Channel!
In this video, we solve a real Python final exam question involving dictionary creation and iteration. We demonstrate how to build a dictionary using a for loop and store computed values (cubes) for each key.
π What you will learn:β¦
In this video, we solve a real Python final exam question involving dictionary creation and iteration. We demonstrate how to build a dictionary using a for loop and store computed values (cubes) for each key.
π What you will learn:β¦
Python-2011FinalExam.pdf
842.3 KB
ASTU Python Final Exam Questions
π 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 6 β Type Conversion (Casting) in Python
π§ Common Conversions
β converts to integer
β converts to decimal number
β converts to string
β converts to True/False
β Example
Here, input() gives a string, so we convert it using int() to do math.
β Important
If the value cannot be converted (e.g., "hello" β int()), Python will raise an error.
π Where Casting is Useful?
β user input
β math operations
β formatting text
β APIs & databases
β data analysis
π§© Mini Task
Tip:Convert them first π
When you receive input from users or work with different data types, sometimes you need to convert values β for example, from text to numbers.
This process is called type conversion or casting.
π§ Common Conversions
int()
β converts to integer
float()
β converts to decimal number
str()
β converts to string
bool()
β converts to True/False
β Example
age = int(input("Enter your age: "))
print(age + 1)Here, input() gives a string, so we convert it using int() to do math.
β Important
If the value cannot be converted (e.g., "hello" β int()), Python will raise an error.
π Where Casting is Useful?
β user input
β math operations
β formatting text
β APIs & databases
β data analysis
π§© Mini Task
Ask for two numbers using input() and print their sum.
Tip: