Uploaded July 2024 | Updated September 2026, 1 week ago
#python #pythonprogramming #pyqt5
00:00:00 intro
00:00:12 pip install PyQt5
00:00:46 imports
00:01:35 boiler-plate code
00:05:26 .setWindowTitle()
00:05:57 .setGeometry()
00:07:28 icons
# PyQt5 introduction
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtGui import QIcon
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("My cool first GUI")
self.setGeometry(700, 300, 500, 500)
#self.setWindowIcon(QIcon("profile_pic.jpg"))
def main():
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()
#python #pythonprogramming #pyqt5
00:00:00 intro
00:00:12 pip install PyQt5
00:00:46 imports
00:01:35 boiler-plate code
00:05:26 .setWindowTitle()
00:05:57 .setGeometry()
00:07:28 icons
# PyQt5 introduction
import sys
from PyQt5.QtWidgets import QApplication, QMainWindow
from PyQt5.QtGui import QIcon
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("My cool first GUI")
self.setGeometry(700, 300, 500, 500)
#self.setWindowIcon(QIcon("profile_pic.jpg"))
def main():
app = QApplication(sys.argv)
window = MainWindow()
window.show()
sys.exit(app.exec_())
if __name__ == "__main__":
main()





![Learn C programming variables easy! โ
#coding #programming #cprogramming
00:00:00 int
00:04:06 float
00:07:35 double
00:09:26 char
00:11:34 char[]
00:14:37 bool
00:18:55 extra details
// variable = A reusable container for a value.
// Behaves as if it were the value it contains.
// int = whole numbers (4 bytes in modern systems)
// float = single-precision decimal number (4 bytes)
// double = double-precision decimal number (8 bytes)
// char = single character (1 byte)
// char[] = array of characters (size varies)
// bool = true or false (1 byte) Learn C programming variables easy! โ](https://i.ytimg.com/vi/WrFEtUzVcnw/mqdefault.jpg)
![Learn runtime polymorphism in 5 minutes! ๐คทโโ๏ธ
#java #javatutorial #javacourse
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// Runtime polymorphism = When the method that gets executed is decided
// at runtime based on the actual type of the object.
Scanner scanner = new Scanner(System.in);
Animal animal;
System.out.print(Would you like a dog or a cat? (1 = dog, 2 = cat): );
int choice = scanner.nextInt();
if(choice 1){
animal = new Dog();
animal.speak();
}
else if(choice 2){
animal = new Cat();
animal.speak();
}
}
} Learn runtime polymorphism in 5 minutes! ๐คทโโ๏ธ](https://i.ytimg.com/vi/YDKHfqzaF30/mqdefault.jpg)



![Learn Python generator expressions in 9 minutes! โป๏ธ
#python #coding #programming
# Generator Expression = Similar to a list comprehension but uses () instead of []
# Creates a generator (iterator) that yields values one at a time
# No need to define a function or use yield
# Less flexible than a gen func and not reusable
# gen object = (expression for value in iterable if condition) Learn Python generator expressions in 9 minutes! โป๏ธ](https://i.ytimg.com/vi/ZBlxaXMN_hU/mqdefault.jpg)