HTML CSS PHP Python Flask C# Physics Chemistry Visual Art Blog more...

TEA Blog

Tyrone Hayes: Endocrine disruption, environmental justice and the ivory tower

Posted by: Benjamin Onuorah



Endocrine disruption, environmental justice and the ivory tower... [Continue Reading]


Tyrone Hayes: Endocrine disruption, environmental justice and the ivory tower
The Okebukola’s 20 Golder Rules in Writing Multiple-Choice Test Items
Christmas: the drunk brother
Think of philosophy not as a dusty academic pursuit
Einstein’s letter to Curie
Listen up, Men!
"There should be no such thing as boring mathematics..." Edsger W. Dijkstra
10 foundational concepts in computer science
If you do nothing, you will become nothing!
Traveling long distance for schooling in Nigeria
More Blog
Lessons

Accessing Request (GET) Data in Flask

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

To access parameters submitted in the URL (? variable=value) or a form with get method (method="GET") you can use the args attribute. Example request.args.get('variable')

Data in URL
Normally a user will not enter a data to a URL like this tealearn.org/page?id=1 OR tealearn.org?name=Ben however you must have noticed that some times will browser a website the URL sometimes takes this form.

What this means is that a link you must clicked makes data (page?id=1) to be pass from one page to another for a dynamic content generation.

In page?id... [Continue Reading]


First Flask program

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

In this first flask program we will create a web application to display "Hello, TEA Learn!" on the web browser.

Follow these steps:
Step1. Create the web application folder e.g myweb
Step 2. Start VS Code and Open the "myweb" folder in VS Code
Step 3. Create a Python file app.py in the "myweb" folder
Step 4. Have the code in Example 1 in your app.py file

Example 1

#import the Flask class from flask framework
from flask import Flask
#create the app instance from Flask class
app = Flask(__name__)
#define a route
...
[Continue Reading]


Uche Okeke (1933-2016) illustrator, painter, sculptor and art professor

Course: African Artists and Drawing
Number of topics: 8
Category: Arts

Uche Okeke was born on 30 April 1933 in Nimo, Njikoka Local Government Area of Anambra State, Nigeria Between 1940 and 1953, he attended St. Peter Claver's (Primary) School, Kafanchan, Metropolitan College, Onitsha, and Bishop Shanahan College, Orlu, Nigeria, during which time he had already begun to demonstrate an avid interest in drawing and painting. Before being admitted to read Fine Art at Nigerian College of Arts, Science and Technology (NCAST), now Ahmadu Bello University, Zaria between 1957 to 1962 (“Uche Okeke”, 2022). He also studied stain glass and mosaic techniques at the Fran... [Continue Reading]


Update record using PHP

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

Let us assume that you have a small news web portal, after posting and displaying the news well paginated for your user to view but then you notice a mistake in the posted news, to correct this you will have to update or edit that content.

Updating a record through a web form as illustrated above involve four steps:

Step1. Select or retrieve and displayed the record as we have done in previous topic with or without pagination

Step2. Introduce the edit link to a page URL with a query string carrying the unique id of each record (this is where we will st... [Continue Reading]


Your first python program

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

After installing the Python setup, to start the Python code editor IDLE:

1. Click the "start" button on your desktop environment and locate where your installed programs are list OR search to locate "Python IDLE"
2. Click the IDLE to start the Python shell environment that provides you with an environment to write some quick python code (note: when you code in shell you cannot save the program. So if you want to save your code as you are typically expected to do, then continue with step 3)
3. Click the "File" button in the opened Python shell environment and cli... [Continue Reading]


Setup your Development Environment

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

In our Python course we used the built-in IDLE development environment to write and run our Python programs, however as we continue to a more advanced (web) application development using Flask framework we will be needing more tools database connection and more task like coding HTML and CSS, then I will recommend we download a more powerful editor or IDE like VS Code.

We need to install the following for this course:

1. Visual Studio Code (VS Code): a powerful code editor with features include support for debugging, syntax highlighting, intelligent code comple... [Continue Reading]


GRAVITATIONAL FIELDS

Course: Physics
Number of topics: 17
Category: Science

This physics video explains the concept of gravitational fields. the basic calculations associated with gravitational field: from Newton's law to kepler's, are discussed therein.... [Continue Reading]


A SURVEY OF THE HISTORY OF PHILOSOPHY

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

A SURVEY OF THE HISTORY OF PHILOSOPHY......Reading revision... [Continue Reading]


See all courses



LearnKids- Science, Technology, Engineering, Arts, and Mathematics (STEAM)
Category: Science
Number of topics: 0
Posted by: Benjamin Onuorah

C# Programming Course
Category: Programming
Number of topics: 1
Posted by: Benjamin Onuorah

Mendelian Inheritance
Category: Science
Number of topics: 0
Posted by: SANKOH MOHAMED AKIM

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