ch
Feedback
Codehub

Codehub

前往频道在 Telegram

Free Programming resources.

显示更多
33 853
订阅者
-1724 小时
-997
-48930
帖子存档
Codehub
33 846
*Free Data Analytics Webinar + Certificate by HCL GUVI: an HCL Group company.* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 For *Working Professionals*, Job Aspirants and *Final Year Students* 🚀 *Register now (100% Free)*👇 https://link.guvi.in/codehubb02493

Codehub
33 846
🐍 *How to Learn Python Programming in 2025 – Step by Step* 💻✨ ✅ *Tip 1: Start with the Basics* Learn Python fundamentals: • Variables & Data Types (int, float, str, list, dict) • Loops (`for`, while`) & Conditionals (`if, `else`) • Functions & Modules ✅ *Tip 2: Practice Small Programs* Build mini-projects to reinforce concepts: • Calculator • To-do app • Dice roller • Guess-the-number game ✅ *Tip 3: Understand Data Structures* • Lists, Tuples, Sets, Dictionaries • How to manipulate, search, and iterate ✅ *Tip 4: Learn File Handling & Libraries* • Read/write files (`open`, `with`) • Explore libraries: math, random, datetime, os ✅ *Tip 5: Work with Data* • Learn pandas for data analysis • Use matplotlib & seaborn for visualization ✅ *Tip 6: Object-Oriented Programming (OOP)* • Classes, Objects, Inheritance, Encapsulation ✅ *Tip 7: Practice Coding Challenges* • Platforms: LeetCode, HackerRank, Codewars • Focus on loops, strings, arrays, and logic ✅ *Tip 8: Build Real Projects* • Portfolio website backend • Chatbot with NLTK or Rasa • Simple game with pygame • Data analysis dashboards ✅ *Tip 9: Learn Web & APIs* • Flask / Django basics • Requesting & handling APIs (`requests`) ✅ *Tip 10: Consistency is Key* Practice Python daily. Review your old code and improve logic, readability, and efficiency. 💬 *Tap ❤️ if this helped you!*

Codehub
33 846
photo content

Codehub
33 846
FREE FREE FREE FREE FREE 🚀 Welcome to PythonAdvisor — your ultimate hub for mastering Python programming and AI technologies! 👨‍💻 Whether you’re a beginner or an advanced developer, join our community for: • Daily Python tutorials and coding tips • FREE FREE FREE FREE Hand Written Notes , Ebook. 🔥 Start your programming journey with PythonAdvisor today. Subscribe now and unlock the power of coding! 👉 Join us on Telegram: [https://t.me/pythonadvisor] #Python #AI #Programming #LearnPython #PythonAdvisor

Codehub
33 846
*Free Data Analytics Webinar + Certificate by HCL GUVI: an HCL Group company.* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 For *Working Professionals*, Job Aspirants and *Final Year Students* 🚀 *Register now (100% Free)*👇 https://link.guvi.in/codehubb02493

Codehub
33 846
*Free Data Analytics Webinar + Certificate by Guvi & HCL!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 For *Working Professionals*, Job Aspirants and *Final Year Students* 🚀 *Register now (100% Free)*👇 https://link.guvi.in/codehubb02493

Codehub
33 846
Get started with Python quickly using this easy cheatsheet! 🚀 From comments and operators to data structures, loops, and fil
Get started with Python quickly using this easy cheatsheet! 🚀 From comments and operators to data structures, loops, and file handling, this guide covers the most useful Python basics, making coding faster and simpler for beginners and pros alike. Save this post and level up your Python journey! For more tips, follow and share with friends interested in learning Python! Check out WhatsApp channels for more updates. 👇 https://whatsapp.com/channel/0029Vb6r6218kyyQgBDNjm26

Codehub
33 846
Python Interview Questions with Answers 🧑‍💻👩‍💻 1️⃣ Write a function to remove outliers from a list using IQR.
import numpy as np

def remove_outliers(data):
    q1 = np.percentile(data, 25)
    q3 = np.percentile(data, 75)
    iqr = q3 - q1
    lower = q1 - 1.5 * iqr
    upper = q3 + 1.5 * iqr
    return [x for x in data if lower <= x <= upper]
2️⃣ Convert a nested list to a flat list.
nested = [[1, 2], [3, 4],]
flat = [item for sublist in nested for item in sublist]
3️⃣ Read a CSV file and count rows with nulls.
import pandas as pd

df = pd.read_csv('data.csv')
null_rows = df.isnull().any(axis=1).sum()
print("Rows with nulls:", null_rows)
4️⃣ How do you handle missing data in pandas?Drop missing rows: df.dropna() ⦁ Fill missing values: df.fillna(value) ⦁ Check missing data: df.isnull().sum() 5️⃣ Explain the difference between loc[] and iloc[]. ⦁ loc[]: Label-based indexing (e.g., row/column names) Example: df.loc[0, 'Name'] ⦁ iloc[]: Position-based indexing (e.g., row/column numbers) Example: df.iloc 💬 Tap ❤️ for more!

Codehub
33 846
🚀 Welcome to PythonAdvisor — your ultimate hub for mastering Python programming and AI technologies! 👨‍💻 Whether you’re a beginner or an advanced developer, join our community for: • Daily Python tutorials and coding tips • Latest AI insights and projects • Interactive quizzes and challenges • Support from fellow learners and experts 🔥 Start your programming journey with PythonAdvisor today. Subscribe now and unlock the power of coding! 👉 Join us on Telegram: [https://t.me/pythonadvisor] #Python #AI #Programming #LearnPython #PythonAdvisor

Codehub
33 846
Python Interview Questions with Answers 🧑‍💻👩‍💻 1️⃣ Write a function to remove outliers from a list using IQR.
import numpy as np

def remove_outliers(data):
    q1 = np.percentile(data, 25)
    q3 = np.percentile(data, 75)
    iqr = q3 - q1
    lower = q1 - 1.5 * iqr
    upper = q3 + 1.5 * iqr
    return [x for x in data if lower <= x <= upper]
2️⃣ Convert a nested list to a flat list.
nested = [[1, 2], [3, 4],]
flat = [item for sublist in nested for item in sublist]
3️⃣ Read a CSV file and count rows with nulls.
import pandas as pd

df = pd.read_csv('data.csv')
null_rows = df.isnull().any(axis=1).sum()
print("Rows with nulls:", null_rows)
4️⃣ How do you handle missing data in pandas?Drop missing rows: df.dropna() ⦁ Fill missing values: df.fillna(value) ⦁ Check missing data: df.isnull().sum() 5️⃣ Explain the difference between loc[] and iloc[]. ⦁ loc[]: Label-based indexing (e.g., row/column names) Example: df.loc[0, 'Name'] ⦁ iloc[]: Position-based indexing (e.g., row/column numbers) Example: df.iloc 💬 Tap ❤️ for more!

Codehub
33 846
🚀 𝗕𝗲𝗰𝗼𝗺𝗲 𝗮𝗻 𝗔𝗜/𝗟𝗟𝗠 𝗘𝗻𝗴𝗶𝗻𝗲𝗲𝗿: 𝗖𝗲𝗿𝘁𝗶𝗳𝗶𝗰𝗮𝘁𝗶𝗼𝗻 𝗣𝗿𝗼𝗴𝗿𝗮𝗺 𝗠𝗮𝘀𝘁𝗲𝗿 𝘁𝗵𝗲 𝘀𝗸𝗶𝗹𝗹𝘀 𝘁𝗲𝗰𝗵 𝗰𝗼𝗺𝗽𝗮𝗻𝗶𝗲𝘀 𝗮𝗿𝗲 𝗵𝗶𝗿𝗶𝗻𝗴 𝗳𝗼𝗿: fine-tune large language models and deploy them to production at scale. 𝗕𝘂𝗶𝗹𝘁 𝗳𝗿𝗼𝗺 𝗿𝗲𝗮𝗹 𝗔𝗜 𝗷𝗼𝗯 𝗿𝗲𝗾𝘂𝗶𝗿𝗲𝗺𝗲𝗻𝘁𝘀. ✅ Fine-tune models with industry tools ✅ Deploy on cloud infrastructure ✅ 2 portfolio-ready projects ✅ Official certification + badge 📘 𝗟𝗲𝗮𝗿𝗻 𝗺𝗼𝗿𝗲 & 𝗲𝗻𝗿𝗼𝗹𝗹 ⬇️ https://www.readytensor.ai/llm-certification/?utm_medium=tel&utm_source=cert-513&utm_campaign=llmed

Codehub
33 846
🔥 Master These 30 Algorithms to Boost Your Coding Skills! 🚀 - Binary Search 🕵️‍♂️ - Quick Sort ⚡ - Merge Sort 🌊 - Heap Sort 🏰 - BFS 🌐 - DFS 🌲 - Dijkstra’s Shortest Path 🚗 - Bellman-Ford 🚦 - Floyd-Warshall 🌉 - Kruskal’s Minimum Spanning Tree 🌳 - Prim’s Algorithm 🌿 - KMP Pattern Matching 🔍 - Rabin-Karp Search 🧮 - Dynamic Programming 🧠 - Kadane’s Max Subarray Sum 💥 - Floyd’s Cycle Detection 🔄 - Topological Sort 🗂️ - Backtracking 🎯 - Binary Tree Traversals 🌳 - Segment Tree 📊 - Union-Find Disjoint Set 🔗 - Greedy Algorithms 🎯 - Bit Manipulation 💡 - Sliding Window ⏱️ - Two Pointers 🔀 - Hashing 🔑 - Recursion 🔁 - Divide & Conquer ⚔️ - Graph Coloring 🎨 - A* Search 🗺️ Master these, ace interviews, and become a problem-solving pro! 💪🔥 ***

Codehub
33 846
🚀 Dreaming of a UI/UX Design Career with No Experience? This is your moment! 🌟 *FREE MASTERCLASS* 📅 October 10, 2025 · 7:0
🚀 Dreaming of a UI/UX Design Career with No Experience? This is your moment! 🌟 *FREE MASTERCLASS* 📅 October 10, 2025 · 7:00 PM · 90 mins (English) Here’s what you’ll walk away with: ✅ Understand design fundamentals & usability ✅ Build a portfolio recruiters will notice ✅ Networking tips to break into the industry ✅ How to keep your skills & tools up-to-date Final Year Students, Job Aspirants and Working Professionals can Attend for FREE 👉 Register here before spots run out: https://link.guvi.in/fresherjobs02408

Codehub
33 846
+1
Pandas Part 1.pdf3.52 KB

Codehub
33 846
*Free Data Analytics Webinar + Certificate by Guvi & HCL!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for e
*Free Data Analytics Webinar + Certificate by Guvi & HCL!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 *Register now (100% Free)* 👇 https://link.guvi.in/codehubb02217 *Join us on WhatsApp:* https://chat.whatsapp.com/JyQhFtCaaWKFRqDAzME1so?mode=ac_t

Codehub
33 846
*Free Data Analytics Webinar + Certificate by HCL & Guvi!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for e
*Free Data Analytics Webinar + Certificate by HCL & Guvi!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 *Register now (100% Free)* 👇 https://link.guvi.in/codehubb02138 *Join us on WhatsApp!* 👇 https://chat.whatsapp.com/KKSJWFTklUyCnPD9MW2tKZ?mode=ac_t

Codehub
33 846
*Free Data Analytics Webinar + Certificate by HCL & Guvi!* 💻🚀 Learn Python, SQL, Excel, Power BI, & more! 📈 *Perfect for everyone* – No experience needed! ✅ Only *500 seats* left! 😳 *Register now (100% Free)* 👇 https://link.guvi.in/codehubb02138 *Join us on WhatsApp!* 👇 https://chat.whatsapp.com/KKSJWFTklUyCnPD9MW2tKZ?mode=ac_t

Codehub
33 846
index.html0.47 KB

Codehub
33 846
// Update timeline data document.getElementById('monthsToGoal').textContent = results.monthsToGoal; document.getElementById('weeksToGoal').textContent = results.weeksToGoal; document.getElementById('weightToLose').textContent = results.weightToLose; document.getElementById('targetWeight').textContent = results.targetWeight; document.getElementById('caloriesPerDay').textContent = results.caloriesPerDay; document.getElementById('tdee').textContent = results.tdee; } // Update body composition (shown for both cases) document.getElementById('currentBodyFat').textContent = results.currentBodyFat + '%'; document.getElementById('targetBodyFat').textContent = results.targetBodyFat + '%'; document.getElementById('leanBodyMass').textContent = results.leanBodyMass; } function resetCalculator() { currentStep = 1; formData = { name: '', gender: '', weight: '', height: '', age: '', activityLevel: '', bodyFat: '' }; // Clear all form inputs document.querySelectorAll('input').forEach(input => input.value = ''); // Clear all selections document.querySelectorAll('.selected').forEach(el => el.classList.remove('selected', 'male', 'female', 'activity') ); // Show first step showStep(1); } // API Integration Function (for when you want to connect to PHP backend) async function saveToDatabase(calculationData) { try { const response = await fetch('api/calculate.php', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ ...formData, session_id: getSessionId(), ...calculationData }) }); const result = await response.json(); if (result.success) { console.log('Calculation saved with ID:', result.calculation_id); } else { console.error('Failed to save calculation:', result.message); } } catch (error) { console.error('API Error:', error); } } function getSessionId() { let sessionId = localStorage.getItem('abs_calc_session'); if (!sessionId) { sessionId = 'session_' + Math.random().toString(36).substr(2, 9) + Date.now(); localStorage.setItem('abs_calc_session', sessionId); } return sessionId; } </script> </body> </html>

Codehub
33 846
if (gender === 'male') { return 88.362 + (13.397 * weight) + (4.799 * height) - (5.677 * age); } else { return 447.593 + (9.247 * weight) + (3.098 * height) - (4.330 * age); } } function calculateResults() { const weight = parseFloat(formData.weight); const height = parseFloat(formData.height); const age = parseInt(formData.age); const bodyFatPercent = parseFloat(formData.bodyFat); const gender = formData.gender; const activityLevel = formData.activityLevel; // Calculate lean body mass const leanBodyMass = weight * (1 - bodyFatPercent / 100); // Target body fat for visible abs const targetBodyFat = gender === 'male' ? 12 : 16; // Calculate target weight for abs const targetWeight = leanBodyMass / (1 - targetBodyFat / 100); // Weight to lose const weightToLose = Math.max(0, weight - targetWeight); // Calculate BMR and TDEE const bmr = calculateBMR(weight, height, age, gender); const tdee = bmr * activityLevels[activityLevel].multiplier; // Time estimation (0.5 kg per week) const weeksToGoal = weightToLose > 0 ? Math.ceil(weightToLose / 0.5) : 0; const monthsToGoal = Math.ceil(weeksToGoal / 4.33); // Calories for fat loss (500 calorie deficit) const caloriesPerDay = tdee - 500; // Check if already lean enough const isAlreadyLean = bodyFatPercent <= targetBodyFat; // Update results display displayResults({ currentWeight: weight, targetWeight: targetWeight.toFixed(1), weightToLose: weightToLose.toFixed(1), leanBodyMass: leanBodyMass.toFixed(1), currentBodyFat: bodyFatPercent, targetBodyFat: targetBodyFat, bmr: Math.round(bmr), tdee: Math.round(tdee), weeksToGoal: weeksToGoal, monthsToGoal: monthsToGoal, caloriesPerDay: Math.round(caloriesPerDay), isAlreadyLean: isAlreadyLean }); } function displayResults(results) { // Update titles if (results.isAlreadyLean) { document.getElementById('resultsTitle').textContent = '🎉 You already have abs!'; document.getElementById('resultsSubtitle').textContent = (formData.name ? formData.name + ', ' : '') + "you're already lean enough to see abs!"; // Show already lean section, hide timeline document.getElementById('alreadyLeanSection').classList.remove('hidden'); document.getElementById('timelineSection').classList.add('hidden'); document.getElementById('alreadyLeanText').textContent = Congratulations! At ${results.currentBodyFat}% body fat, your abs should already be visible.; } else { document.getElementById('resultsTitle').textContent = '🎯 Your Abs Journey'; document.getElementById('resultsSubtitle').textContent = (formData.name ? formData.name + ', ' : '') + "here's your personalized timeline"; // Show timeline section, hide already lean document.getElementById('timelineSection').classList.remove('hidden'); document.getElementById('alreadyLeanSection').classList.add('hidden');