- Видео 8
- Просмотров 736
Tech with Mo
Великобритания
Добавлен 19 окт 2024
Welcome to Tech with Mo! I’m a Junior Software Engineer passionate about making technology accessible to everyone. This channel is dedicated to breaking down complex tech topics into easy-to-understand videos. Whether you’re a beginner or a tech enthusiast, you’ll find tutorials on programming, app development, and the latest tech trends. Join me as we explore the world of technology, one code at a time! Don’t forget to subscribe for regular updates and insights into the tech industry.
Master Data Cleaning in Python: Handle Missing Data with Pandas (Beginner-Friendly Tutorial)
Welcome back to Tech with Mo! In Part 2 of our data analysis series, we delve into data cleaning using Python's Pandas library. Learn how to identify and handle missing data to ensure your datasets are ready for analysis.
What You'll Learn:
- Detecting missing values in datasets
- Strategies to handle missing data: removal and imputation
- Practical examples using Pandas in Google Colab
Resources:
Google Colab: colab.research.google.com
Pandas Documentation: pandas.pydata.org/pandas-docs/stable/
Stay Connected:
Subscribe for more tutorials: www.youtube.com/@UCnXV_9DF2nPmwn4cSqCQPUg
Don't forget to like, comment, and subscribe for more content on Python, data analysis, and tech tutorials!
#Python #P...
What You'll Learn:
- Detecting missing values in datasets
- Strategies to handle missing data: removal and imputation
- Practical examples using Pandas in Google Colab
Resources:
Google Colab: colab.research.google.com
Pandas Documentation: pandas.pydata.org/pandas-docs/stable/
Stay Connected:
Subscribe for more tutorials: www.youtube.com/@UCnXV_9DF2nPmwn4cSqCQPUg
Don't forget to like, comment, and subscribe for more content on Python, data analysis, and tech tutorials!
#Python #P...
Просмотров: 34
Видео
Master Data Analysis with Python: Beginner’s Guide to Pandas in Google Colab
Просмотров 4121 день назад
Unlock the power of data analysis with Python! In this beginner-friendly tutorial, we'll guide you through using Pandas in Google Colab to import datasets, explore data, and perform initial manipulations. Whether you're new to data science or looking to refresh your skills, this step-by-step guide is designed to get you started. What You'll Learn: - Setting up Google Colab for data analysis - I...
Machine Learning for beginners: Clean & Explore Data with Python!
Просмотров 19328 дней назад
📊 Dive into the world of data preprocessing with this hands-on Python tutorial on Tech with Mo! Data is the backbone of Machine Learning, and in this video, we’ll show you how to clean, explore, and visualise data using popular libraries like pandas and seaborn. We’ll use the Iris dataset to demonstrate how to handle missing values, scale data, and create beautiful visualisations. 👨💻 What You'...
Machine Learning for Beginners: Learn ML from Scratch!🌟
Просмотров 11Месяц назад
🚀 Welcome to Tech with Mo! In this beginner-friendly video, we break down machine learning in simple terms, making it easy for anyone to understand. We’ll cover what ML is, its different types, and show you real-world examples of how ML is changing our lives. Whether you're curious about AI or want to start a career in tech, this is the perfect starting point. 👨💻 What You'll Learn: - The basic...
Python for Beginners: Build a Tic-Tac-Toe Game with Python and Tkinter
Просмотров 242Месяц назад
🚀 In this Python tutorial, we’ll build a Tic-Tac-Toe game with a graphical user interface using the Tkinter library. Perfect for beginners, this step-by-step guide will show you how to create a 2-player game with features like player turns, win conditions, and a reset button. 👨💻 What You’ll Learn: Setting up a game board with buttons in Tkinter Handling player input and alternating turns Check...
Python for Beginners: Build a Python Quiz App in just 20 Minutes!
Просмотров 64Месяц назад
🎓 Learn how to build a Python Quiz App from scratch in this beginner-friendly tutorial! We'll walk through everything step by step, including how to display multiple-choice questions, handle user input, check answers, and track scores. Whether you're new to Python or looking for a fun project, this tutorial is perfect for you! 👨💻 🔑 What You'll Learn: - Working with lists and dictionaries - Usi...
Python for Beginners: Build Your First Calculator Program in Just 21 Minutes!
Просмотров 53Месяц назад
👨💻 Want to learn how to build a calculator using Python? This beginner-friendly tutorial will walk you through creating a basic calculator program step-by-step! You'll learn how to handle user input, perform basic operations like addition, subtraction, multiplication, and division, and even deal with error handling (division by zero). Perfect for those new to Python or programming in general! ...
Python for Beginners: Create Your Own Bank Program in Just 25 Minutes! 💰🏦
Просмотров 100Месяц назад
🚀 In this Python tutorial, you'll learn how to build a simple yet powerful banking system from scratch! Whether you're new to coding or looking to improve your Python skills, this project will guide you through creating a bank program that allows users to deposit, withdraw, and check their balance. 👨💻 In this video, you'll learn: - How to create a Python class for bank accounts - How to use me...
import numpy as np import pandas as pd data = {'Feature': [1, 2, 3, 4, 5], 'Label': [2, 4, 6, 8, 10]} df = pd.DataFrame(data) print("Our simple Dataset:") print(df)
import tkinter as tk from tkinter import messagebox window = tk.Tk() window.title("Tic-Tac-toe") buttons =[[None, None, None], [None, None, None], [None, None, None]] current_player = "X" def button_click(row, col): global current_player if buttons[row][col]["text"] == "": buttons[row][col]["text"] = current_player if check_winner(): messagebox.showinfo("Game Over!", f"player {current_player} wins!") rest_game() elif all (buttons[r][c]["text"] != "" for r in range(3) for c in range(3)): messagebox.showinfo("Game Over!", "It's a draw") rest_game() else: current_player = "O" if current_player == "X" else "X" def check_winner(): for row in range(3): if buttons[row][0]["text"] == buttons[row][1]["text"] == buttons[row][2]["text"] != "": return True for col in range(3): if buttons[0][col]["text"] == buttons[1][col]["text"] == buttons[2][col]["text"] != "": return True if buttons[0][0]["text"] == buttons[1][1]["text"] == buttons [2][2]["text"] != "": return True if buttons[0][2]["text"] == buttons[1][1]["text"] == buttons[2][0]["text"] != "": return True return False def rest_game(): global current_player current_player = "X" for row in range(3): for col in range(3): buttons[row][col]["text"] = "" for row in range(3): for col in range(3): buttons[row][col] = tk.Button(window, text="", font=('normal', 40), width=5, height=2, command=lambda row=row, col=col: button_click(row, col)) buttons[row][col].grid(row=row, column=col) window.mainloop()
quiz_data = [ { "question": "What is the capital of France?", "options": ["A) Berlin", "B) Madrid", "C) Paris", "D) Lisbon"], "answer": "C" }, { "question": "Who Wrote Harry Potter'?", "options": ["A) J.R.R. Tolkien", "B) J.K. Rowling", "C) Stephen King", "D) George R.R. Martin"], "answer": "B" }, { "question": "Which Planet is known as the Red Planet", "options": ["A) Earth", "B) Mars", "C) Jupiter", "D) Venus"], "answer": "B" }, ] def ask_question(question_data): print(question_data["question"]) for option in question_data["options"]: print(option) user_answer = input("Enter the correct option (A-B-C-D): ").upper() return user_answer def check_answer(user_answer, correct_answer): if user_answer == correct_answer: print("Correct") return True else: print(f"Wrong! The correct answer is {correct_answer}.") return False def run_quiz(): score = 0 for question_data in quiz_data: user_answer = ask_question(question_data) if check_answer(user_answer, question_data["answer"]): score += 1 print(f" Quiz finished! You got {score} out of {len(quiz_data)} question right.") run_quiz()
def add(x, y): return x + y def subtract(x, y): return x - y def multiply(x, y): return x * y def divide(x, y): if y == 0: return "Error! Division by zero" else: return x / y def main(): print("Select Operation") print("1. Add") print("2. Subtract") print("3. Multiply") print("4. Divide") choice = input("Enter choice (1 - 4 ): ") if choice not in ['1', '2', '3', '4']: print("Invalid Input, Try again") return num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) if choice == '1': print(f"{num1} + {num2} = {add(num1, num2)}") elif choice == '2': print(f"{num1} - {num2} = {subtract(num1, num2)}") elif choice == '3': print(f"{num1} * {num2} = {multiply(num1, num2)}") elif choice == '4': print(f"{num1} / {num2} = {divide(num1, num2)}") while True: main() next_calculation = input("Do you want to perform another calculation? (yes/no) ") if next_calculation.lower() != 'yes': print("Thank you for using the calculator.") break
class BankAccount: def __init__(self, owner, balance=0): self.owner = owner self.balance = balance def deposit(self, amount): self.balance += amount return f"Deposits of {amount} made. New balance: {self.balance}" def withdraw(self, amount): if amount > self.balance: return "Insufficient Funds" else: self.balance -= amount return f"withdrawl of {amount} made. New balance: {self.balance}" def get_balance(self): return f"Account balance: {self.balance}" my_account = BankAccount("Tech with Mo") #print(my_account.deposit(1500)) #print(my_account.withdraw(500)) #print(my_account.withdraw(600)) #print(my_account.get_balance()) def main(): owner_name = input("Enter your name: ") my_account = BankAccount(owner_name) while True: print("Choose an option:") print("1. Deposit") print("2. Withdraw") print("3. Check Balance") print("4. Exit") choice = input("Enter your choice: ") if choice == '1': amount = float(input("Enter deposit amount: ")) print(my_account.deposit(amount)) elif choice == '2': amount = float(input("Enter withdrawal amount: ")) print(my_account.withdraw(amount)) elif choice == '3': print(my_account.get_balance()) elif choice == '4': print("Thank you for banking with us!") break else: print("Invalid choice, please try again.") if __name__ == "__main__": main()