Uploaded July 2025 | Updated September 2026, 2 weeks ago
#coding #numpy #python
The purpose of arithmetic in NumPy is to perform fast, element-wise operations on entire arrays without writing loops.
00:00:00 scalar arithmetic
00:02:03 vectorized math functions
00:03:50 EXERCISE
00:05:08 element-wise arithmetic
00:06:39 comparison operators
#coding #numpy #python
The purpose of arithmetic in NumPy is to perform fast, element-wise operations on entire arrays without writing loops.
00:00:00 scalar arithmetic
00:02:03 vectorized math functions
00:03:50 EXERCISE
00:05:08 element-wise arithmetic
00:06:39 comparison operators
![Learn Java Object Oriented Programming in 10 minutes! 🧱
#java #javatutorial #javacourse
public class Main {
public static void main(String[] args) {
// Object = An entity that holds data (attributes)
// and can perform actions (methods)
// It is a reference data type
Car car = new Car();
System.out.println(car.make);
System.out.println(car.model);
System.out.println(car.year);
System.out.println(car.price);
System.out.println(car.isRunning);
car.drive();
car.brake();
}
}
public class Car {
String make = Ford;
String model = Mustang;
int year = 2025;
double price = 58000.99;
boolean isRunning = false;
void start(){
isRunning = true;
System.out.println(You start the engine);
}
void stop(){
isRunning = false;
System.out.println(You stop the engine);
}
void drive(){
System.out.println(You drive the + model);
}
void brake(){
System.out.println(You brake the + model);
}
} Learn Java Object Oriented Programming in 10 minutes! 🧱](https://i.ytimg.com/vi/DYbi93vuSaU/mqdefault.jpg)


![NumPy multidimensional arrays are easy! 🧊
#coding #python #numpy
import numpy as np
array = np.array([[[A, B, C], [D, E, F], [G, H, I]],
[[J, K, L], [M, N, O], [P, Q, R]],
[[S, T, U], [V, W, X], [Y, Z, ]]])
print(array.ndim) #returns number of dimensions
print(array.shape) #returns a tuple of integers that represent the shape
word = array[0, 0, 0] + array[2, 0, 0] + array[2, 0, 0]
print(word) NumPy multidimensional arrays are easy! 🧊](https://i.ytimg.com/vi/EnhgbolbEe0/mqdefault.jpg)
![Learn DATES & TIMES with Java in 8 minutes! 📆
#java #javatutorial #javacourse
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
public class Main {
public static void main(String[] args) {
// How to work with DATES & TIMES using Java
// (LocalDate, LocalTime, LocalDateTime, UTC timestamp)
// Current date
LocalDate date = LocalDate.now();
System.out.println(date);
// Current time
LocalTime time = LocalTime.now();
System.out.println(time);
// Current date and time
LocalDateTime dateTime = LocalDateTime.now();
System.out.println(dateTime);
// UTC timestamp
Instant instant = Instant.now();
System.out.println(instant);
// Custom format
DateTimeFormatter formatter = DateTimeFormatter.ofPattern(dd-MM-yyyy HH:mm:ss);
String newDateTime = dateTime.format(formatter);
System.out.println(newDateTime);
// Comparing dates & times
LocalDateTime date1 = LocalDateTime.of(2024, 12, 25, 12, 0, 0); // CHRISTMAS
LocalDateTime date2 = LocalDateTime.of(2025, 1, 1, 0, 0, 0); // NEW YEARS DAY
if(date1.isBefore(date2)){
System.out.println(date1 + is earlier than + date2);
}
else if(date1.isAfter(date2)){
System.out.println(date1 + is later than + date2);
}
else if(date1.isEqual(date2)){
System.out.println(date1 + is equal to + date2);
}
}
} Learn DATES & TIMES with Java in 8 minutes! 📆](https://i.ytimg.com/vi/F2bZ1fkAQx0/mqdefault.jpg)


![Learn Java inheritance in 9 minutes! 👨👧👦
#java #javatutorial #javacourse
00:00:00 inheritance
00:05:10 multi-level inheritance
public class Main {
public static void main(String[] args) {
// Inheritance = One class inherits the attributes and methods
// from another class.
Dog dog = new Dog();
Cat cat = new Cat();
Plant plant = new Plant();
}
}
public class Organism {
boolean isAlive;
Organism(){
isAlive = true;
}
}
public class Plant extends Organism{
void photosynthesize(){
System.out.println(The plant absorbs sunlight);
}
}
public class Animal extends Organism{
void eat(){
System.out.println(This animal is eating);
}
}
public class Dog extends Animal{
int lives = 1;
void speak(){
System.out.println(The dog goes *woof*);
}
}
public class Cat extends Animal{
int lives = 9;
void speak(){
System.out.println(The cat goes *meow*);
}
} Learn Java inheritance in 9 minutes! 👨👧👦](https://i.ytimg.com/vi/GTP5lVEKXaU/mqdefault.jpg)
![Start using NumPy in 5 minutes! 🔢
#coding #programming #numpy
This is an introduction to how to get started working with NumPy
1. open a terminal
2. pip install numpy
3. import numpy as np
4. array = np.array([1, 2, 3, 4]) Start using NumPy in 5 minutes! 🔢](https://i.ytimg.com/vi/Gc-dwloxNFE/mqdefault.jpg)

![Code a rock paper scissors game with Java! 🗿
#java #javatutorial #javacourse
This is a coding project for beginners to help you learn how to code. We will use the following previous topics: arrays, loops, logical operators, random numbers, and string methods.
import java.util.Random;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
// ROCK PAPER SCISSORS GAME
Scanner scanner = new Scanner(System.in);
Random random = new Random();
String[] choices = {rock, paper, scissors};
String playerChoice;
String computerChoice;
String playAgain = yes;
do{
System.out.print(Enter your move (rock, paper, scissors): );
playerChoice = scanner.nextLine().toLowerCase();
if(!playerChoice.equals(rock) && !playerChoice.equals(paper) && !playerChoice.equals(scissors)){
System.out.println(Invalid choice);
continue;
}
computerChoice = choices[random.nextInt(3)];
System.out.println(Computer choice: + computerChoice);
if(playerChoice.equals(computerChoice)){
System.out.println(Its a tie!);
}
else if((playerChoice.equals(rock) && computerChoice.equals(scissors)) ||
(playerChoice.equals(paper) && computerChoice.equals(rock)) ||
(playerChoice.equals(scissors) && computerChoice.equals(paper))){
System.out.println(You win!);
}
else{
System.out.println(You lose!);
}
System.out.print(Play again (yes/no): );
playAgain = scanner.nextLine().toLowerCase();
}while(playAgain.equals(yes));
System.out.println(Thanks for playing!);
scanner.close();
}
} Code a rock paper scissors game with Java! 🗿](https://i.ytimg.com/vi/GsuEJ9QOPgk/mqdefault.jpg)