Programming Classes
257 subscribers
35 photos
1 video
12 files
24 links
Tech For better Future!
Download Telegram
16. \<b> for bold text:

   <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:

   <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>
👍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.
👍54👏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.
👍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.
🔥2👍1
Today is a Crucial Lesson so Missing class today may cost you dearly.

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.
👍3
five examples for each type of loop in Python:

1\. For Loop:
# Example 1: Iterating over a string
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)
2\. While Loop:
# Example 1: Printing numbers from 1 to 10 using while loop
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)
3\. Nested Loops:
# Example 1: Printing multiplication table using nested loops
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], ")")
4\. Range Loop:
# Example 1: Printing even numbers using range loop
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)
5\. List Comprehension:
`
# 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")
Python notes
🌐For Web Development Students🌐

Please Try creating HTML only Websites like the one this video.

💎Next Friday we will learn about:
Div
Span
Class and ID
connecting CSS to HTML using External
Some CSS codes

https://youtu.be/hKsSgU5b0Gw?si=8SwsDKtTmnai-y8L
Please open Telegram to view this post
VIEW IN TELEGRAM
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