How to add image to our website using html?
Watch This Videos 👇👇👇
https://youtu.be/Hh_se2Zqsdk?si=yoYMQnB7Doe46mkm
https://youtu.be/Qerz5CQa2A8?si=BRYO73hXl4ph-lb8
https://youtu.be/p22-bIIvINw?si=yCcDq4MJS3oLq2iG
https://youtu.be/NSZWj0mio1A?si=hIhf3ICJET7YDhBx
And more videos are available on YouTube.
If it's still not clear ask me on comment 👇
Watch This Videos 👇👇👇
https://youtu.be/Hh_se2Zqsdk?si=yoYMQnB7Doe46mkm
https://youtu.be/Qerz5CQa2A8?si=BRYO73hXl4ph-lb8
https://youtu.be/p22-bIIvINw?si=yCcDq4MJS3oLq2iG
https://youtu.be/NSZWj0mio1A?si=hIhf3ICJET7YDhBx
And more videos are available on YouTube.
If it's still not clear ask me on comment 👇
👍3
#Basic_computer
What is the purpose of a cache in a computer system?
a) To store frequently accessed data for faster retrieval
b) To provide additional storage space for files
c) To control the flow of data between the CPU and other hardware components
d) To protect the computer from malware attacks
What is the purpose of a cache in a computer system?
a) To store frequently accessed data for faster retrieval
b) To provide additional storage space for files
c) To control the flow of data between the CPU and other hardware components
d) To protect the computer from malware attacks
❤1
For all students of Python, web Development and basic Computer Courses
We would like to inform you that our Class which was scheduled to be held on the first Saturday of the week has been postponed to Next Friday due to our Exams next week. We would like to tell you to study the lessons with your full attention and prepare for the exams.
Note: Please note that there will be classes for two consecutive days next Friday and Saturday.
We would like to inform you that our Class which was scheduled to be held on the first Saturday of the week has been postponed to Next Friday due to our Exams next week. We would like to tell you to study the lessons with your full attention and prepare for the exams.
Note: Please note that there will be classes for two consecutive days next Friday and Saturday.
👍3
We would like to inform you that our Class which was scheduled to be held on the first Friday of the week has been postponed to Next Saturday.
👍1
Tomorrow, we will have classes just like scheduled in the timetable. So students do prepare and come to class on time.
Have a nice time.
Have a nice time.
👍3
Forwarded from 🐹 Hamster Kombat Mini Game
Write the output of the following functions.
A function to add two numbers:
@oroscholarly
Website: oroscholarly.gaammeemedia.com
A function to add two numbers:
def add_numbers(a, b):2. A function to check if a number is even:
return a + b
result = add_numbers(5, 3)
print(result)
def is_even(num):3. A function to calculate the area of a circle:
if num % 2 == 0:
return True
else:
return False
print(is_even(4))
print(is_even(5))
import math4. A function to print a greeting message:
def area_of_circle(radius):
return math.pi * radius ** 2
print(area_of_circle(5))
def greet(name):5. A function to calculate the factorial of a number:
print("Hello, " + name + "!")
greet("Alice")
greet("Bob")
def factorial(num):
if num == 0:
return 1
else:
return num * factorial(num-1)
print(factorial(5))
@oroscholarly
Website: oroscholarly.gaammeemedia.com
1.
#python
@oroscholarly
Oroscholarly.gaammeemedia.com
append()
method adds an element to the end of the list:numbers = [1, 2, 3]2.
numbers.append(4)
print(numbers) # Output: [1, 2, 3, 4]
extend()
method adds multiple elements to the end of the list:numbers = [1, 2, 3]3.
numbers.extend([4, 5])
print(numbers) # Output: [1, 2, 3, 4, 5]
insert()
method inserts an element at a specific index:fruits = ["apple", "banana", "orange"]4.
fruits.insert(1, "grape")
print(fruits) # Output: ["apple", "grape", "banana", "orange"]
remove()
method removes the first occurrence of an element:fruits = ["apple", "banana", "orange"]5.
fruits.remove("banana")
print(fruits) # Output: ["apple", "orange"]
pop()
method removes and returns the last element of the list:numbers = [1, 2, 3]6.
last_number = numbers.pop()
print(last_number) # Output: 3
print(numbers) # Output: [1, 2]
index()
method returns the index of the first occurrence of an element:fruits = ["apple", "banana", "orange"]7.
index_of_banana = fruits.index("banana")
print(index_of_banana) # Output: 1
count()
method returns the number of occurrences of an element in the list:numbers = [1, 2, 3, 2, 1]8.
number_of_ones = numbers.count(1)
print(number_of_ones) # Output: 2
sort()
method sorts the list in ascending order:numbers = [3, 1, 4, 2]9.
numbers.sort()
print(numbers) # Output: [1, 2, 3, 4]
reverse()
method reverses the order of the list:numbers = [1, 2, 3]
numbers.reverse()
print(numbers) # Output: [3, 2, 1]
#python
@oroscholarly
Oroscholarly.gaammeemedia.com
🥰1
16. \<b> for bold text:
17. \<i> for italicized text:
18. \<u> for underlined text:
19. \<s> for strikethrough text:
20. \<blockquote> for block quotes:
21. \<q> for inline quotes:
22. \<abbr> for abbreviations:
23. \<cite> for citations:
24. \<sub> for subscript text:
25. \<sup> for superscript text:
These tags allow for text formatting, quotations, abbreviations, citations, and special text positioning within HTML content.
<b>This text is bold.</b>
17. \<i> for italicized text:
<i>This text is italicized.</i>
18. \<u> for underlined text:
<u>This text is underlined.</u>
19. \<s> for strikethrough text:
<s>This text has a strikethrough.</s>
20. \<blockquote> for block quotes:
<blockquote>This is a blockquote.</blockquote>
21. \<q> for inline quotes:
<q>This is an inline quote.</q>
22. \<abbr> for abbreviations:
<abbr title="World Wide Web">WWW</abbr>
23. \<cite> for citations:
<cite>Book Title</cite>
24. \<sub> for subscript text:
H<sub>2</sub>O
25. \<sup> for superscript text:
E=mc<sup>2</sup>
These tags allow for text formatting, quotations, abbreviations, citations, and special text positioning within HTML content.
here are a few more basic HTML tags covering various text formatting and structural elements:
26. \<code> for indicating computer code:
27. \<kbd> for indicating keyboard input:
28. \<mark> for highlighting text:
29. \<time> for representing dates or times:
30. \<del> for indicating deleted text:
31. \<ins> for indicating inserted text:
32. \<small> for smaller text:
33. \<dfn> for defining terms:
34. \<address> for contact information:
These tags offer additional ways to format and structure text, highlight content, and provide context within an HTML document.
26. \<code> for indicating computer code:
<code>int main() { return 0; }</code>
27. \<kbd> for indicating keyboard input:
Press <kbd>Ctrl</kbd> + <kbd>C</kbd> to copy.
28. \<mark> for highlighting text:
<mark>This text is highlighted.</mark>
29. \<time> for representing dates or times:
<time datetime="2023-11-30">November 30, 2023</time>
30. \<del> for indicating deleted text:
<del>This text has been deleted.</del>
31. \<ins> for indicating inserted text:
<ins>This text has been inserted.</ins>
32. \<small> for smaller text:
<small>This text is smaller.</small>
33. \<dfn> for defining terms:
<dfn>HTML</dfn> stands for HyperText Markup Language.
34. \<address> for contact information:
<address>123 Street, City, Country</address>
These tags offer additional ways to format and structure text, highlight content, and provide context within an HTML document.
#WebDevlopment
Since We Are Lagging Behind In Our Lessons In Website Development, please practice the codes I sent you above on your phone in the format you learned before. In our next class we will be talking about lists and Tables. Let’s practice the preliminary codes we’ll be looking at together under this topic.
<ul>
<ol>
<li>
<table>
<th>
<tr>
<td>
Since We Are Lagging Behind In Our Lessons In Website Development, please practice the codes I sent you above on your phone in the format you learned before. In our next class we will be talking about lists and Tables. Let’s practice the preliminary codes we’ll be looking at together under this topic.
<ul>
<ol>
<li>
<table>
<th>
<tr>
<td>
👍1
As the week comes to a close we couldn't resist sharing of these new photos of programming class at Ambo Ifa Boru Special Boarding School.
👍5❤4👏1
Hello students
Due to different reasons we haven't learned for more than 3 weeks,
Please manage you're time as we might have multiple long learning sessions ahead to finish the course in this semester.
Due to different reasons we haven't learned for more than 3 weeks,
Please manage you're time as we might have multiple long learning sessions ahead to finish the course in this semester.
👍4🔥1👏1😁1
Hello, students
Due to some reasons our today's session is postponed for tomorrow.
We'll have a long session tomorrow starting from 2:00 - 6:00.
Make your self ready for the tomorrow's learning session.
Due to some reasons our today's session is postponed for tomorrow.
We'll have a long session tomorrow starting from 2:00 - 6:00.
Make your self ready for the tomorrow's learning session.
🔥2👍1
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