π 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:
π 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
π
πΉ Basic If Statement
πΉ IfβElse Statement
πΉ IfβElifβElse
π‘ Why It Matters
π§© Mini Task
Day 8 β Conditional Statements in PythonConditional statements allow your program to make decisions based on conditions.
πΉ Basic If Statement
age = 18
if age >= 18:
print("You are an adult")πΉ IfβElse Statement
if age >= 18:
print("Adult")
else:
print("Minor")πΉ IfβElifβElse
score = 85
if score >= 90:
print("A")
elif score >= 80:
print("B")
else:
print("C or below")
π‘ Why It Matters
Conditional logic powers real-world systems like:
β login validation
β access control
β grading systems
β navigation & decision bots
β games & AI logic
π§© Mini Task
Ask the user for a number and:
β print if itβs positive, negative, or zero.
π1
Registration link for the upcoming workshop: https://us06web.zoom.us/webinar/register/WN_VoQ4yE4SRD6z_jssg0sDmw