Core Python Data Types, String Manipulation, and Foundational Exercises
The in and not in Membership Operators
These operators verify weather a substring or element exists within a sequence. in returns True when the target is found, while not in returns True when the target is absent.
username = "alexander"
if "alex" in username:
print('Substring located')
else:
print('Substring missing' ...
Posted on Sun, 13 Sep 2026 16:06:09 +0000 by Unholy Prayer
Practical SQL Workshop: Joins, Functions, and Data Operations
Module 2: Table Joins and Linking1. Retrieve the name and salary of staff members working in Luton.SELECT s.name, s.base_salary
FROM staff AS s
INNER JOIN location_data AS l ON s.dept_id = l.dept_id
WHERE l.city = 'LUTON';
2. Combine the location_data table with the staff table and display the results sorted by department ID.SELECT l.dept_label ...
Posted on Sun, 30 Aug 2026 16:21:07 +0000 by briguy9872
Java Programming Exercises: Basic Logic and Algorithms
1. Create a program that maps input numbers 1-7 to corresponding days of the week.package com.examples.core;<br><br>import java.util.Scanner;<br><br>public class DayMapper {<br> public static void main(String[] args) {<br> Scanner scanner = new Scanner(System.in);<br> System.out.println ...
Posted on Wed, 03 Jun 2026 16:40:27 +0000 by kettle_drum
Basic C Programming Exercises
Task 1: ASCII Art Stick Figure
Print a stick figure vertically:
#include <stdio.h>
int main() {
printf(" O \n");
printf("/|\\\n");
printf(" | \n");
return 0;
}
Print two stick figures vertically:
#include <stdio.h>
int main() {
printf(" O \n");
printf("/|\\\n&qu ...
Posted on Wed, 20 May 2026 07:47:21 +0000 by OldWolf
Practical Exercises on Recursion and Iteration in C Programming
Printing Individual Digits of an Integer
The following recursive function separates and prints each digit of an unsigned integer.
#include <stdio.h>
void displayDigits(unsigned int num)
{
if (num > 9)
{
displayDigits(num / 10);
}
printf("%u ", num % 10);
}
int main()
{
unsigned int value = 0;
...
Posted on Tue, 19 May 2026 07:47:50 +0000 by CarbonCopy
C Programming (5th Edition) - Chapter 4 Exercises
4.1 What are arithmetic operations? What are relational operations? What are logical operations?
Arithmetic operations: Operations such as addition, subtraction, mutliplication, division, and modulus on numbers.
Relational operations: Comparisons between two operands to determine relationships like equality, inequality, greater than, etc.
Logi ...
Posted on Tue, 12 May 2026 20:49:01 +0000 by kanchan