Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

You Have to Know the Finally Block in Python! #python #coding #programming What does the finally block in Python's try-except actually do? In this short I break down why finally always runs. No matter if your code worked or crashed. I show you two real-life examples: closing a file...

15,900 görüntüleme • 5 ay önce •via TikTok

0 Yorum

Yorum bulunmuyor

Orijinal gönderinin yorumları burada görünecek

Benzer Videolar

RustGIS is now on PyPI: pip install rustgis RustGIS is a fast, free and open-source GIS in pure Rust for mapping, analyzing and sharing geospatial data. It runs natively on Windows, macOS and Linux, and in your web browser. Your data stays on your machine unless you send it to an AI model you choose, and every action is a command you can script. The new rustgis Python package brings the RustGIS engine into Python and the full RustGIS app into your Jupyter notebook, with no server to run and nothing else to install. What you can do - The engine in-process: open the same data the app opens, run any of RustGIS's commands and geoprocessing tools, style layers and render maps, all from Python. - GeoPandas in and out: turn any layer into a GeoDataFrame, or add a GeoDataFrame as a layer. - The whole app in a notebook cell: shows the ribbon, panes and map right below your code. - Two-way sync: what Python adds or styles appears in the app, and what you pan, edit or add in the app comes back to Python. - Projects that travel: save a .rgis project from Python and open it as it is in the desktop app or the web app. - Runs where you work: JupyterLab, Jupyter Notebook, VS Code and Google Colab, with prebuilt wheels for Windows, macOS and Linux. Get started in three lines: import rustgis m = m Try it out - Open the getting-started notebook in Colab: - PyPI: - Python guide: - Launch the web app: - GitHub: #GIS #Rust #Python #Jupyter #OpenSource #Geospatial

Qiusheng Wu

13,852 görüntüleme • 1 ay önce

🐍 LEARN PYTHON IN 10 MINUTES — BEGINNER'S GUIDE ⚠️ DISCLAIMER: This tutorial is for educational purposes. Practice coding in your own environment and use programming skills responsibly. 💻 WHAT IS PYTHON? Python is a beginner-friendly programming language used in web development, automation, artificial intelligence, data analysis, and cybersecurity. 🚀 PYTHON BASICS YOU SHOULD KNOW 1️⃣ VARIABLES Variables store information such as names, numbers, and other values. Example: name = "Hackwithbanks" age = 20 print(name, age) 2️⃣ DATA TYPES Python supports strings, integers, floats, and booleans. Example: username = "Banks" attempts = 5 price = 10.5 is_active = True 3️⃣ CONDITIONS Conditions help your program make decisions. Example: password_length = 12 if password_length >= 8: print("Meets the minimum length") else: print("Too short") 4️⃣ LOOPS Loops repeat actions without writing the same code repeatedly. Example: for number in range(1, 6): print(number) 5️⃣ FUNCTIONS Functions let you reuse code whenever you need it. Example: def greet(name): print("Hello,", name) greet("Hackwithbanks") 🧠 HOW TO LEARN PYTHON EFFECTIVELY ✅ Learn one concept at a time. ✅ Write the code yourself instead of only watching tutorials. ✅ Build small projects like calculators and simple automation tools. ✅ Practice debugging errors to understand how code works. ✅ Gradually explore APIs, scripting, and cybersecurity projects in authorized labs. ⚠️ Avoid tutorial hell! Watching videos alone will not make you a programmer. The real progress comes from writing code, solving problems, and building projects independently. 🔐 PYTHON FOR CYBERSECURITY Python can help security professionals automate repetitive tasks, process log files, analyze network data, and build defensive security tools. Always test security scripts only on systems you own or have permission to assess. 💡 REMEMBER: Ten minutes can introduce you to Python, but consistent practice is what builds real skills. 🔐 HACKWITHBANKS — Learn • Build • Test • Defend. #Python #LearnPython #PythonProgramming #CodingForBeginners #Programming

Hackswithbanks

47,200 görüntüleme • 1 ay önce

How to build a complete app with AI (no code, the whole picture) How to build a complete app with AI when you don't know how to code: login, a database, photos, invoices, and a real link your customers open on their phone. We follow one client, Priya, through a client portal for a kitchen remodeler. She logs in and sees her project's stage, her photos and her invoice. Every step answers a real beginner question about how apps work. 1. Your workshop: VS Code with the Claude Code extension, an empty folder 2. Describe the app in plain English (plus three technical lines you can copy) 3. The front end, and why localhost means only you can see it 4. The database: the refresh test, and what tables are 5. Login: why your password is stored only as a hash, and what a session cookie does 6. The one rule every app needs: each customer sees only their own data, proven with a test 7. Move the database online: from a file on your laptop to a hosted Postgres database on Supabase, with secret keys in a private .env.local file 8. GitHub: put your code online in a private repository 9. Vercel: deploy, add environment variables, and get a live link (honest costs: Vercel Pro for a business, Supabase Pro) 10. Your own domain with DNS and HTTPS, then a security audit before real clients log in Works for any small business app: client portals, booking apps, customer dashboards, internal tools. AI app builder, vibe coding, no-code app, full stack app with Claude Code. I have an entire course on building apps with AI from zero in my community. If you're interested, the link is in my profile. #vibecoding#aiapp #claudecode#aiagent

Professor Glitch

98,000 görüntüleme • 4 gün önce