Uploaded August 2024 | Updated September 2026, 2 weeks ago
#pythoncourse #python #pythontutorial
This is a beginner's python project to help you practice working with PyQt5 and making API requests.
openweathermap.org
00:00:00 introduction
00:00:22 Openweather API key
00:01:14 pip install PyQt5
00:01:44 imports
00:03:19 class WeatherApp
00:03:52 if ___name___ == "__main__"
00:05:35 START HERE
00:09:09 initUI()
00:12:13 CSS styling
00:17:37 method declarations
00:18:28 get_weather button
00:19:34 request API data
00:24:49 HTTP exception handling
00:32:00 RequestException
00:34:36 display_error()
00:37:24 display_weather()
00:44:02 get_weather_emoji()
00:52:24 clean up
#pythoncourse #python #pythontutorial
This is a beginner's python project to help you practice working with PyQt5 and making API requests.
openweathermap.org
00:00:00 introduction
00:00:22 Openweather API key
00:01:14 pip install PyQt5
00:01:44 imports
00:03:19 class WeatherApp
00:03:52 if ___name___ == "__main__"
00:05:35 START HERE
00:09:09 initUI()
00:12:13 CSS styling
00:17:37 method declarations
00:18:28 get_weather button
00:19:34 request API data
00:24:49 HTTP exception handling
00:32:00 RequestException
00:34:36 display_error()
00:37:24 display_weather()
00:44:02 get_weather_emoji()
00:52:24 clean up
![Java arithmetic is easy! 🧮
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args) {
// Arithmetic Operators
int x = 10;
int y = 2;
int z;
z = x + y; // ADDITION
z = x - y; // SUBTRACTION
z = x * y; // MULTIPLICATION
z = x / y; // DIVISION
z = x % y; // MODULUS
System.out.println(z);
}
} Java arithmetic is easy! 🧮](https://i.ytimg.com/vi/QAD5unRlCyo/mqdefault.jpg)


![Learn Java 2D arrays in 9 minutes! ⬜
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args){
// 2D array = An array where each element is an array
// Useful for storing a matrix of data
//
// EXAMPLE 1
//
String[][] groceries = {{apple, orange, banana},
{potato, onion, carrot},
{chicken, pork, beef, fish}};
groceries[2][1] = eggs;
for(String[] foods : groceries){
for(String food : foods){
System.out.print(food + );
}
System.out.println();
}
//
// EXAMPLE 2
//
char[][] telephone = {{1, 2, 3},
{4, 5, 6},
{7, 8, 9},
{*, 0, #}};
for(char[] row : telephone){
for(char number : row){
System.out.print(number + );
}
System.out.println();
}
}
} Learn Java 2D arrays in 9 minutes! ⬜](https://i.ytimg.com/vi/Qf3Nczxm2AY/mqdefault.jpg)
![Random numbers in NumPy are easy! 🎲
#coding #python #numpy
Random numbers in NumPy are useful for simulations,
modeling, applying random transformations, and testing purposes.
rng = np.random.default_rng()
print(rng.integers(low=1, high=7, size=(3, 4))) # 3x4 array of Ints
np.random.seed()
print(np.random.uniform(low 1, high=1, size=(3, 2))) # floats between 2 values
# Shuffle
array = np.array([1, 2, 3, 4, 5])
rng.shuffle(array)
print(array)
# Random Choice
fruits = np.array([🍎, 🍊, 🍌, 🥥, 🍍])
print(rng.choice(fruits, size=(3, 3))) Random numbers in NumPy are easy! 🎲](https://i.ytimg.com/vi/Ql5zGPtxlHY/mqdefault.jpg)
![User input in Java is easy! ⌨️
#java #javatutorial #javacourse
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println(Enter your name: );
String name = scanner.nextLine();
System.out.println(Enter your age: );
int age = scanner.nextInt();
System.out.println(What is your gpa: );
double gpa = scanner.nextDouble();
System.out.println(Are you a student? (true/false): );
boolean isStudent = scanner.nextBoolean();
System.out.println(Hello + name);
System.out.println(You are + age + years old);
System.out.println(Your gpa is: + gpa);
if(isStudent){
System.out.println(You are enrolled in classes);
}
else{
System.out.println(You are NOT enrolled in classes);
}
scanner.close();
}
} User input in Java is easy! ⌨️](https://i.ytimg.com/vi/RAthlOQUMkc/mqdefault.jpg)



![Learn Java threading in 10 minutes! 🧵
#java #javatutorial #javacourse
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Threading = Allows a program to run multiple tasks simultaneously
// Helps improve performance with time-consuming operations
// (File I/O, network communications, or any background tasks)
// How to create a Thread
// Option 1. Extend the Thread class (simpler)
// Option 2. Implement the Runnable interface (better)
Scanner scanner = new Scanner(System.in);
MyRunnable myRunnable = new MyRunnable();
Thread thread = new Thread(myRunnable);
thread.setDaemon(true); // This thread will end when Main thread finishes
thread.start();
System.out.println(You have 10 seconds to enter your name);
System.out.print(Enter your name: );
String name = scanner.nextLine();
System.out.println(Hello + name);
scanner.close();
}
} Learn Java threading in 10 minutes! 🧵](https://i.ytimg.com/vi/SztE5W41on4/mqdefault.jpg)
![Java variables are easy! ❎
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args) {
// ❎ variable = A reusable container for a value.
// A variable behaves as if it was the value it contains.
// 🟥 Primitive = simple value stored directly in memory (stack)
// 🟦 Reference = memory address (stack) that points to the (heap)
// 🟥 Primitive vs 🟦 Reference
//
// int string
// double array
// char object
// boolean
int age = 21;
int year = 2025;
int quantity = 1;
double price = 19.99;
double gpa = 3.5;
double temperature = -12.5;
char grade = A;
char symbol = !;
char currency = $;
boolean isStudent = true;
boolean forSale = false;
boolean isOnline = true;
String name = Bro Code;
String food = pizza;
String email = fake123@gmail.com;
String car = Mustang;
String color = red;
System.out.println(Your choice is a + color + + year + + car);
System.out.println(The price is: + currency + price);
if(forSale){
System.out.println(There is a + car + for sale);
}
else{
System.out.println(The + car + is not for sale);
}
}
} Java variables are easy! ❎](https://i.ytimg.com/vi/TGVLmr194DI/mqdefault.jpg)