1. What is Back-End?
The back-end is the server side of a web application. It handles database interactions, user
authentication, server logic, and application integration behind the scenes.
2. Programming Languages Used for Back-End:
• PHP
• Python
• Java
• [Link] (JavaScript)
• Ruby
• C#
3. Jobs of a Back-End Developer:
• Design and maintain databases
• Create APIs and server logic
• Implement security and data protection
• Optimize application performance
• Integrate front-end with server-side logic
4. Variables, Const, Arrays in PHP and Python:
PHP: you can declare as follows -:
$userName (Variable name) = "Vitalis" (Variable Value);
define("ApplicationName" (Constant Name) , "School Management System" (Constant
Value));
or const ApplicationName = "School Management System";
$Numbers (array name) = [1, 2, 3] (array value);
Key Note: Variables, Const, and Arrays are location in a programs that stores values which are
assigned to them the only differences are variables can be reassigned, Const cant be
reassigned while arrays hold multiple values and ideally have to be related.
Python:
Greeting = "Hello" ---- Variable
MY_VAFORITE_FOOD = "Pounded Yam" note: By convention, use uppercase --- Const
Numbers = [1, 2, 3] ------ Array
5. Naming Convention in PHP and Python:
• PHP: camelCase for variables and functions ($userName), PascalCase for classes
(UserProfile)
• Python: snake_case for variables and functions (user_name), PascalCase for classes
(UserProfile)
What is Python?
Python is a high-level, interpreted programming language known for its readability, simplicity,
and wide use in web development, data analysis, automation, and AI.
Variables in Python:
Variables are created by assigning a value to a name:
name = "John"
age = 25
Keywords in Python:
Reserved words that can't be used as identifiers. Examples: if, else, for, while, def, class,
return, import.
Projects Ideas: -
//User Input and Display:
name = input("Enter your name: ")
print("Hello", name)
_______________________________________________
//Simple Calculator:
a = float(input("Enter first number: "))
b = float(input("Enter second number: "))
operator = input("Enter operation (+, -, *, /): ")
if operator == '+':
print("Result:", a + b)
elif operator == '-':
print("Result:", a - b)
elif operator == '*'
print("Result:", a * b)
elif operator == '/'
print("Result:", a / b)
else:
print("Invalid operator")
//in python the gaps and space matters, so ensure to give gaps when writing a conditional
statements