SamiTech Code
341 subscribers
132 photos
12 videos
4 files
87 links
Computer Science student and software developer focused on building impactful products, exploring AI, and solving real-world challenges with technology.
My portfolio.... sami.pro.et

“Your efforts today are your goals tomorrow.”
Download Telegram
Good night family
Rest well and prepare your self for tommorow routine
Be God with us🫶
Good morning family.
When you wakeup, what you do🤔
please write your answer in the comment sections.
So guys have you been learn Python or familar with it? If so It's better for you to dive into other concepts.

If you have learn it say Yes,
If not I will share for you the next step you gonna learn.
What is Python?
Python is a high-level, interpreted, and easy-to-read programming language.
Widely used in:

Machine Learning 🤖
Data Science 📊
Web Development 🌐
Automation ⚙️
1
Hey guys good afternoon, how every thing is going on? I wish you're doing great. About 1 days ago, I sent for you Road Map for Machine Learning the Phase 1: Programming Skills (Python Focus), So here is the source code of mine you can look at it https://github.com/Samuel-5485/python_learning_from_scratch.git and If you want to share your skills it's good to share for us. here you're also teacher and student. I learn from you and share for you what I have already understand also you can do it so.
👍4
Good night family🛌 again thanks for being with me🙏
Good morning guys

I believe, you were rest well.
So now it's the time to keep learn our journey for machine learning.
Since we're studying the phase 1: Python programming let's learn it together without any borring.

For those who learned python before, it's good to jump into the next step.
hey what differs python from the others programming language?
Then guys in this morning I have just covered Conditionals in python: lemme share for you what I have already understand: Conditionals: if, if-else, if-elif-else, if-if, Comparation <,>,<=,>=, !=, == Logic program: and(&), or(|), not
Write a program that accept a score from the user then display their grade?.
hint use if-elif-else print("A+") if score >=90, print("A") if score >=80 print("B"),...else print("F") I'm waiting for you try to to do👆
Oh gus, how's going on😁 now I'm tired and now I need to check my writing speed, and I'll share for you my score. just if you want to practice that try it on monkeytyping
SamiTech Code
Write a program that accept a score from the user then display their grade?. hint use if-elif-else …
I wish you tried that ok we can solve it using; if-elif-els score = float(input("Enter your score: "))
if score >= 90 and score < 100:
print("Your grade is A+")
elif score >= 80 and score < 90:
print("Your grade is A")
elif score >= 70 and score < 80:
print("Your grade is B")
elif score >= 60 and score < 70:
print("Your grade is C")
elif score >= 50 and score < 60:
print("Your grade is D")
else:
print("F")
1
SamiTech Code pinned «I wish you tried that ok we can solve it using; if-elif-els score = float(input("Enter your score: ")) if score >= 90 and score < 100:…»
Hey family good evening🌅
Can you share for us.
Today, How Have you been used:)👀
Guys now I'm studying Exception in python and the following concept will be covered:
SyntaxError. ValueError. try. except. NameError. else. pass. raise After I finish this I'll share for you what they're meant
1
What we meant by Exception and why we use it?
SamiTech Code
What we meant by Exception and why we use it?
Exception means when the error occurred during the runtime.
eg: display your by accepting prompt from the user! x = int(input("How old are you? "))
print(f"I'm {x} years old) 🙆 SyntaxError: unterminated f-string literal (detected at line 3)

Therefore, SyntaxError is one of the type of Exception so instead of seeing the error, it's good to use Exception handling! hey what's the error in the above code?👆 since it's programmer fault we have to recheck our code. 👀 Try it by your self and send the correct code in the comment sections.
😴 Good night guys
⚡️Good morning fam
Use try-except to handle exception: """Write a program that accept from the user then display his age. hint: in this code programmers didn't make any mistake but it's during the user fault so, instead of seeing the error use exception handling"""👀
Answer
try:
age = int(input("How old are you? "))
print(f"I'm {age} years old. ")
except ValueError:
print("Please your age must be integer! ")

if age<0:
print("your age must be positive")
1