Learn HTML CSS PHP and MySQL Python Flask Physics Chemistry Educational Blog and more...

TEA Educational Blog

Happy Independence Nigeria



O Nigeria, land of hope and grace,
With skies so bright, and hearts that race,
From the Niger's flow to the Borno sands,
We rise as one, with willing hands.

Our green land thrives, our rivers sing,
A future bright, with hope we bring.
Though trials come, we stand as strong,
In unity, where we belong.

From Zik to Awolowo’s fight,
Our freedom won, our future bright.
We raise our flags, our voices soar,
For independence, forever more.

The strength of youth, the wisdom old,
Our stories rich, yet to be told.
We march in pride, as one we stand,
A blessed and beloved land.

Happy Independence, oh dear Nigeria,
A beacon of hope, ever so clear.
Together we'll build, hand in hand,
A prosperous, united, and glorious land.

... [Continue Reading]


Happy Independence Nigeria
Good Question
I was called Iron Lady for being a successful woman – Prof Osofisan (Professor of Computer science)
New Black studies curriculum to launch in NYC schools this fall
Education is not a scam; it is immensely rewarding
More Blog
Lessons

Installing Python on your computer

Course: Python Programming
Number of topics: 11
Category: Programming

Installing Python on your computer or device is the first step to learning Python. Follow this step to install. It is very easy to do this.

1. Visit Python official website. python.org and local the "Downloads" link OR better still visit the Downloads page straight with this web address https://www.python.org/downloads/

2. Click link for the operating system that you are using e.g Windows to see the python releases for Windows OR visit go straight to the page using the web address https://www.python.org/downloads/windows/

3. I will advise you download Py... [Continue Reading]


Create Consistent layout using Jinja

Course: Flask: Python Web Development
Number of topics: 16
Category: Programming

Looking at the previous lesson and the ones related to the School Grading System you must have noticed some annoying repitition of code in the templates html files


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Students Record</title>
</head>

<body>
<h2>School Grading System</h2>
    <hr/>
    <a href="/student">Students</a> | 
    <a href="#">Subjects</a> | 
    <a href="#">Instructor</a> | 
    <a href="#">Score Sheet</a> 
    <hr/>
    <h2>See Student Record</h2>
  
<a href="/">Back to home</a><br/>
....

[Continue Reading]


More on Loops with Python

Course: Python Programming
Number of topics: 11
Category: Programming

Loop can be logically and creatively use to make programming more useful and interactive.

Example 1
You are ask to write a program to calculate the average score of n number of students.

Because the number of students is unknown you can ask the user to input the number of students you want to process there score, and use this to execute the loop to compute the average.


#prompt use to enter number
n=int(input("Enter the number of students you want to compute their result "))

totalscore=0
averagescore=0
count=1

while count<=n:
  ...
[Continue Reading]


PHILOSOPHY AND ITS RELEVANCE TO SOCIETY

Course: GST 102
Number of topics: 17
Category: Business

PHILOSOPHY AND ITS RELEVANCE TO SOCIETY... [Continue Reading]


ELECTRICITY 2

Course: Physics
Number of topics: 17
Category: Science

This is one of the series on Electricity: for high school.... [Continue Reading]


Read and write data to CSV file

Course: Python Programming
Number of topics: 11
Category: Programming

As you program you will later realise that you may need to store or access data for example a product or student information for later use. This is when it becomes necessary to have a separate file to hold such information.

Again Python is populate use for data analysis and many data specialist and programmers now use it to handle a variety of data.

CSV format
CSV (Comma-Separated Values) is one of the most popular formats for storing and exchanging tabular data.

The structure of a CSV file just as its name is just a plain text file that us... [Continue Reading]


Form processing using PHP

Course: Web development using PHP and MySQL
Number of topics: 27
Category: Programming

Create a simple form in the index.php page with the code:

index.php

<HTML>
<HEAD>
<TITLE> Testing PHP </TITLE>
</HEAD>
<BODY>
<form method="post" action="process.php">
  <input type="text" name="country" >
  <input type="submit" name="button" value="Submit">
</form>
<p>
<?php
print "Today's date is: ". date('d-m-y');
?
</p>
</BODY>
</HTML>


Note:
The method="post", this indicates the method we want the form to use in submitting its data, therefore we have to use the PHP $_POST special variable to access its data likewise.
[Continue Reading]


Functions in PHP

Course: Web development using PHP and MySQL
Number of topics: 27
Category: Programming

In programming, when we are discussing functions we are either referring to the built-in function that comes with the language or the User defined or custom function that the programer would like to create..

Built-in functions
PHP has lots of built-in functions some of which we have seen, for example the echo or print, date, array, mail, math, msqli, strings etc.

Date function

<?php
print date('h:i:s - d/m/Y');
?>

display the current time and date

pi() math function

<?php
print pi();
?>
</x...
[Continue Reading]


See all courses



Making the Most of Life: A Journey to Purpose
Category: Business
Number of topics: 7
Posted by: David Mba

General African Studies (GST 201)
Category: Business
Number of topics: 1
Posted by: David Mba

GST 102
Category: Business
Number of topics: 17
Posted by: David Mba

Use of English
Category: Arts
Number of topics: 0
Posted by: Samson Dawodu Abiodun

African Artists and Drawing
Category: Arts
Number of topics: 8
Posted by: Benjamin Onuorah

Flask: Python Web Development
Category: Programming
Number of topics: 16
Posted by: Benjamin Onuorah

Chemistry with Dr. Anita
Category: Science
Number of topics: 10
Posted by: Sir John Jollynery

Physics
Category: Science
Number of topics: 17
Posted by: Sir John Jollynery

Programming (Pdf Materials)
Category: Programming
Number of topics: 2
Posted by: Benjamin Onuorah

Programming (Video Materials)
Category: Programming
Number of topics: 1
Posted by: Benjamin Onuorah

Web development using PHP and MySQL
Category: Programming
Number of topics: 27
Posted by: Benjamin Onuorah

Python Programming
Category: Programming
Number of topics: 11
Posted by: Benjamin Onuorah

Styling (Beautify) Website
Category: Programming
Number of topics: 2
Posted by: Benjamin Onuorah

Introduction to HTML and Web Technology
Category: Programming
Number of topics: 8
Posted by: Benjamin Onuorah

Supported by

Flag Counter