Today is a Crucial Lesson so Missing class today may cost you dearly.
2:00 (Local Time)
2:00 (Local Time)
๐1
#Basic_Computer
For basic computer students our class is in the afternoon 7:30 -9:00 local time. Don't miss it.
For basic computer students our class is in the afternoon 7:30 -9:00 local time. Don't miss it.
๐3
five examples for each type of loop in Python:
1\. For Loop:
# Example 1: Squaring numbers using list comprehension
numbers = [1, 2, 3, 4, 5]
squares = [num**2 for num in numbers]
print("The squares are:", squares)
# Example 2: Filtering even numbers using list comprehension
numbers = [1, 2, 3, 4, 5]
even = [num for num in numbers if num % 2 == 0]
print("The even numbers are:", even)
# Example 3: Removing duplicates from a list using list comprehension
numbers = [1, 2, 3, 2, 4, 2, 5]
unique = list(set([num for num in numbers]))
print("The list after removing duplicates is:", unique)
# Example 4: Converting a list of strings to uppercase using list comprehension
fruits = ["apple", "banana", "cherry"]
uppercase = [fruit.upper() for fruit in fruits]
print("The fruits i
1\. For Loop:
# Example 1: Iterating over a string2\. While Loop:
for letter in "Python":
print(letter)
# Example 2: Iterating over a tuple
fruits = ("apple", "banana", "cherry")
for fruit in fruits:
print(fruit)
# Example 3: Iterating over a dictionary
person = {"name": "John", "age": 30, "country": "USA"}
for key, value in person.items():
print(key, value)
# Example 4: Iterating over a list of numbers and finding the sum
numbers = [1, 2, 3, 4, 5]
sum = 0
for num in numbers:
sum += num
print("The sum is:", sum)
# Example 5: Iterating over a list and printing the index and value of each element
fruits = ["apple", "banana", "cherry"]
for index, fruit in enumerate(fruits):
print(index, fruit)
# Example 1: Printing numbers from 1 to 10 using while loop3\. Nested Loops:
num = 1
while num <= 10:
print(num)
num += 1
# Example 2: Finding the factorial of a number using while loop
num = 5
factorial = 1
while num > 0:
factorial *= num
num -= 1
print("The factorial is:", factorial)
# Example 3: Removing all occurrences of an element from a list using while loop
numbers = [1, 2, 3, 2, 4, 2, 5]
element = 2
while element in numbers:
numbers.remove(element)
print("The list after removing all occurrences of", element, "is:", numbers)
# Example 4: Printing numbers in reverse order using while loop
num = 10
while num >= 1:
print(num)
num -= 1
# Example 5: Finding the sum of digits of a number using while loop
num = 12345
sum = 0
while num > 0:
digit = num % 10
sum += digit
num //= 10
print("The sum of digits is:", sum)
# Example 1: Printing multiplication table using nested loops4\. Range Loop:
for i in range(1, 11):
for j in range(1, 11):
print(i, "*", j, "=", i*j)
print()
# Example 2: Finding all pairs of elements from two lists whose sum is even using nested loops
list1 = [1, 2, 3]
list2 = [4, 5, 6]
for x in list1:
for y in list2:
if (x+y) % 2 == 0:
print("(", x, ",", y, ")")
# Example 3: Printing a pattern using nested loops
for i in range(1, 6):
for j in range(1, i+1):
print("*", end="")
print()
# Example 4: Finding the common elements between two lists using nested loops
list1 = [1, 2, 3, 4]
list2 = [3, 4, 5, 6]
common = []
for x in list1:
for y in list2:
if x == y:
common.append(x)
print("The common elements are:", common)
# Example 5: Printing all possible combinations of a list using nested loops
list1 = [1, 2, 3]
for i in range(len(list1)):
for j in range(i+1, len(list1)):
print("(", list1[i], ",", list1[j], ")")
# Example 1: Printing even numbers using range loop5\. List Comprehension:
for num in range(0, 11, 2):
print(num)
# Example 2: Printing odd numbers using range loop
for num in range(1, 10, 2):
print(num)
# Example 3: Printing numbers in reverse order using range loop
for num in range(10, 0, -1):
print(num)
# Example 4: Finding the sum of numbers using range loop
numbers = [1, 2, 3, 4, 5]
sum = 0
for num in range(len(numbers)):
sum += numbers[num]
print("The sum is:", sum)
# Example 5: Printing the ASCII values of characters using range loop
for char in range(ord('a'), ord('z')+1):
print(chr(char), "=", char)
`
# Example 1: Squaring numbers using list comprehension
numbers = [1, 2, 3, 4, 5]
squares = [num**2 for num in numbers]
print("The squares are:", squares)
# Example 2: Filtering even numbers using list comprehension
numbers = [1, 2, 3, 4, 5]
even = [num for num in numbers if num % 2 == 0]
print("The even numbers are:", even)
# Example 3: Removing duplicates from a list using list comprehension
numbers = [1, 2, 3, 2, 4, 2, 5]
unique = list(set([num for num in numbers]))
print("The list after removing duplicates is:", unique)
# Example 4: Converting a list of strings to uppercase using list comprehension
fruits = ["apple", "banana", "cherry"]
uppercase = [fruit.upper() for fruit in fruits]
print("The fruits i
๐1
n uppercase are:", uppercase)
# Example 5: Finding the length of each word in a sentence using list comprehension
sentence = "The quick brown fox jumps over the lazy dog"
lengths = [len(word) for word in sentence.split()]
print("The lengths of words are:", lengths)
Sure, here are five examples of if statements in Python:
1. Checking if a number is positive or negative:
num = -5
if num >= 0:
print("The number is positive")
else:
print("The number is negative")
2. Checking if a number is even or odd:
num = 7
if num % 2 == 0:
print("The number is even")
else:
print("The number is odd")
3. Checking if a string is empty or not:
string = ""
if len(string) == 0:
print("The string is empty")
else:
print("The string is not empty")
4. Checking if a number is divisible by both 3 and 5:
num = 15
if num % 3 == 0 and num % 5 == 0:
print("The number is divisible by both 3 and 5")
else:
print("The number is not divisible by both 3 and 5")
5. Checking if a person is eligible to vote based on their age:
age = 17
if age >= 18:
print("You are eligible to vote")
else:
print("You are not eligible to vote yet")
# Example 5: Finding the length of each word in a sentence using list comprehension
sentence = "The quick brown fox jumps over the lazy dog"
lengths = [len(word) for word in sentence.split()]
print("The lengths of words are:", lengths)
`
Sure, here are five examples of if statements in Python:
1. Checking if a number is positive or negative:
num = -5
if num >= 0:
print("The number is positive")
else:
print("The number is negative")
2. Checking if a number is even or odd:
num = 7
if num % 2 == 0:
print("The number is even")
else:
print("The number is odd")
3. Checking if a string is empty or not:
string = ""
if len(string) == 0:
print("The string is empty")
else:
print("The string is not empty")
4. Checking if a number is divisible by both 3 and 5:
num = 15
if num % 3 == 0 and num % 5 == 0:
print("The number is divisible by both 3 and 5")
else:
print("The number is not divisible by both 3 and 5")
5. Checking if a person is eligible to vote based on their age:
age = 17
if age >= 18:
print("You are eligible to vote")
else:
print("You are not eligible to vote yet")
https://youtu.be/hKsSgU5b0Gw?si=8SwsDKtTmnai-y8L
Please open Telegram to view this post
VIEW IN TELEGRAM
YouTube
Full Course HTML Tutorial - How to Make a Web Site Using HTML and Notepad
The reason I decided to create this HTML tutorial video is to first present an introduction to HTML for people who aren't familiar with it. The second reason is to bring back the fun and joy of coding your own web site from scratch without using any fancyโฆ
โค3๐2๐ฅ1
For Web development Students
โ
Be informed that we don't have class today and follow this channel as we will have projects through this chat.
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Crypto News (๐๐ฎ๐ท๐ช๐ผ)
Students who want to study the following courses online please register at the link below.
๐ฐCyber Security
Learn to safeguard systems and data from ever-evolving digital threats.
Upon completion of the above courses, you will receive a Certificate from Google. Only a few students left so Hurry up and register. Once you have registered, you will only be required to pay 200 ETB when you receive an email that your registration has been successful. Registration ends January 6th and Classes begin January 8th.
โ To register ๐๐๐
https://docs.google.com/forms/d/e/1FAIpQLSetwkk6s-7zyZUC85UJPIUWnQjdV47aEDq-ULATLAmuRhFv2A/viewform?usp=sf_link
๐ฐCyber Security
Learn to safeguard systems and data from ever-evolving digital threats.
Upon completion of the above courses, you will receive a Certificate from Google. Only a few students left so Hurry up and register. Once you have registered, you will only be required to pay 200 ETB when you receive an email that your registration has been successful. Registration ends January 6th and Classes begin January 8th.
โ To register ๐๐๐
https://docs.google.com/forms/d/e/1FAIpQLSetwkk6s-7zyZUC85UJPIUWnQjdV47aEDq-ULATLAmuRhFv2A/viewform?usp=sf_link
Google Docs
Cyber security Registration
Welcome to the registration form for our Cyber Security course's! Please fill out the following information accurately to enroll in our courses. By completing this form, you acknowledge and agree to the terms and conditions outlined by the teaching team.โฆ
๐1
We are informed that most of the students have a tutorial class today. Therefore, our today's class is postponed. Enjoy your time and merry Christmas.
Please follow up for more video lesson and notes to be posted on this channel.
Please follow up for more video lesson and notes to be posted on this channel.
๐ฅ1
For Web Development Class Students Only
Be informed that we will have Crucial Class Jan 7 at 10:00 PM (Local Time).
We will develop some projects on our today's lesson so try to watch below Videos .
https://youtu.be/cHv-ZYVm1Dg?si=CFNqaYmMxhtdKeDK
https://youtu.be/zqWOMO22CvE?si=YF8o1_KKUCPaWbAu
Please Share this Information For Your friends since this is a crucial class it will be hard to pass to other projects.
Be informed that we will have Crucial Class Jan 7 at 10:00 PM (Local Time).
We will develop some projects on our today's lesson so try to watch below Videos .
https://youtu.be/cHv-ZYVm1Dg?si=CFNqaYmMxhtdKeDK
https://youtu.be/zqWOMO22CvE?si=YF8o1_KKUCPaWbAu
Please Share this Information For Your friends since this is a crucial class it will be hard to pass to other projects.
โค2๐1
Hello everybody,
Due to the final exam preparations we had closed our classes for over a month, coming semester we will go harder to finish the classes before mid exam. So do review what you learned during your break. Till then we will learn with some videos which I will post on here. Don't forget to tell each other.
Have a blast one.
Due to the final exam preparations we had closed our classes for over a month, coming semester we will go harder to finish the classes before mid exam. So do review what you learned during your break. Till then we will learn with some videos which I will post on here. Don't forget to tell each other.
Have a blast one.
๐3โค1
#python
Everyone get ready we will have a video lesson posted after now. Make sure you watch the entire video.
Everyone get ready we will have a video lesson posted after now. Make sure you watch the entire video.
๐2
Programming Classes
https://youtu.be/_uQrJ0TkZlc?si=-9WIXYTy4aGyrp2q
#python
Every single one of you must at least watch 4 hours of this video
Every single one of you must at least watch 4 hours of this video
โค2
#Web_Devlopment
Hello Students, As we all know we have stopped our regular class due to different Exams including the Final exam. So to cover missed classes we will have some classes Next semester at The beginning. Also Since we have covered the basics we will change our technique and follow PBL(Project Based Learning) strategy. So from the below poll please vote at maximum (not greater than) three Projects we will do and the top Voted Three projects will be done in class and the others will be given as a project for you. So please make yourself ready for our next sessions by reviewing what we learned with video I'm gonna send you Next.
Hello Students, As we all know we have stopped our regular class due to different Exams including the Final exam. So to cover missed classes we will have some classes Next semester at The beginning. Also Since we have covered the basics we will change our technique and follow PBL(Project Based Learning) strategy. So from the below poll please vote at maximum (not greater than) three Projects we will do and the top Voted Three projects will be done in class and the others will be given as a project for you. So please make yourself ready for our next sessions by reviewing what we learned with video I'm gonna send you Next.
๐ฅ3
Programming Classes
#Web_Devlopment Hello Students, As we all know we have stopped our regular class due to different Exams including the Final exam. So to cover missed classes we will have some classes Next semester at The beginning. Also Since we have covered the basics weโฆ
For Web development Students only
Please Select Only 3 Projects from these 10 Projects. Top 3 selected projects will be done in class. We will Try to cover the others too AS much as The time allowed us.
Please Select Only 3 Projects from these 10 Projects. Top 3 selected projects will be done in class. We will Try to cover the others too AS much as The time allowed us.
Anonymous Poll
31%
BMI Calculator
62%
Clock
23%
Countdown Timer
23%
Currency Convertor
85%
Language Translator
31%
Random Quote/ Message Generator
31%
Unit Converter
31%
Tic tac toe game
31%
Weather App
38%
Word Counter
๐2โค1๐ฅ1๐1
Programming Classes
For Web development Students only
Please Select Only 3 Projects from these 10 Projects. Top 3 selected projects will be done in class. We will Try to cover the others too AS much as The time allowed us.
Please Select Only 3 Projects from these 10 Projects. Top 3 selected projects will be done in class. We will Try to cover the others too AS much as The time allowed us.
Please try to look at all Projects before voting. Also You can retract your vote if that's not what you thought we should practice in class
๐1๐ฅ1๐1