🔥 Quick Python challenge 💻 Energy consumption comparison: Who uses more energy - you or your devices? Built a Python script that converts calories (workout) and watt-hours (devices) to joules for a fair comparison. Key conversions: • 1 Calorie = 4,184 Joules • 1 watt-hour = 3,600 Joules Simple validation loop + conditional logic = clean solution ✅ #Python #CodingChallenge #Programming #DataConversion #Python #Coding #EnergyConversion #Programming
Francesco Romano’s Post
More Relevant Posts
-
💻 Credit Card Validator using Luhn Algorithm ✅ used re module to clean input ✅ reversed string and processed digits with enumerate ✅ applied modulus logic to double every other digit Cleaned, reversed, summed — one loop. It checks if a number is valid by summing digits and verifying that sum is divisible by 10. 📸 Check the console output #Python #Programming #LearningInPublic #freeCodeCamp
To view or add a comment, sign in
-
-
🚀 Day 6 of Python Basics – Understanding str() Function Today I explored the str() function in Python. 🔹 Used to convert numeric data into string format 🔹 Essential when displaying numbers as text 🔹 Helpful while working with user input, printing messages, and formatting output Understanding type conversion is very important in programming. Small concepts like str() play a big role in data handling and text processing. Step by step, building a strong foundation in Python! 💻🐍 #PythonBasics #PythonLearning #PythonFunctions #CodingJourney #LearnToCode
To view or add a comment, sign in
-
-
Today I practiced if-else conditions by building a small program that checks whether a number is positive or negative. This time, instead of using int, I used float — so the program can handle decimal numbers as well. What I learned today: Difference between int and float Handling decimal inputs Strengthening conditional logic with if-else Even a small improvement like choosing the right data type makes the program more flexible. #Python #PythonLearning #CodingJourney #100DaysOfCode #BeginnerPython #Programming #LearningToCode #DeveloperJourney #TechGrowth #FutureDeveloper
To view or add a comment, sign in
-
-
Strengthening Python Basics Recently, I built a menu-driven calculator using Python 🧮 Although it’s a simple project, it helped me understand how basic programming concepts work together in real code. 💡 What I worked on: - Taking user input and handling choices - Using conditional statements for different operations - Implementing arithmetic operations (addition, subtraction, multiplication, division, modulus, floor division) - Handling edge cases like division by zero 🧠 What I learned: - How logic flow works in a program Writing cleaner and more readable code - Thinking step-by-step instead of jumping to solutions - Focusing on strong fundamentals before moving to advanced topics 🚀 #Python #CodingJourney #LearningByDoing #StudentDeveloper #Programming #GitHubProjects
To view or add a comment, sign in
-
Hello everyone, I recently published a beginner-friendly Python tutorial focused on using Python’s turtle module as a visual learning tool in computer science. In this video, I walk through how turtle graphics work and explain how simple commands translate into visual output on the screen. We start by checking the Python environment and creating a file from the terminal, then break the code down line by line while building a logo-style design with “CUC BatKnights” centered inside a box. The goal of this tutorial is to emphasize understanding over memorization by explaining why each part of the code behaves the way it does, including turtle movement, pen control, and coordinate-based positioning. Topics covered include: What Python’s turtle module is and how it works Creating and running Python scripts from the terminal Drawing geometric shapes and centering text Customizing fonts, colors, and layout This serves as an accessible introduction to visual programming and is well suited for those new to Python or computer science. 🎥 Watch here: https://lnkd.in/gGTa5Xtk #Python #ComputerScience #SoftwareEngineering #ProgrammingEducation #LearningToCode #STEM
Python Turtle Tutorial 🐢 | Draw Text Inside a Box (Beginner Friendly)
https://www.youtube.com/
To view or add a comment, sign in
-
📌 Python Fundamentals: Variables Notebook I'm sharing a Python notebook focused on Variables, a core concept that underpins programming and data workflows. The notebook walks through: - Variable creation and assignment - Data types and type checking - Naming conventions and best practices - Practical examples Revisiting fundamentals is always valuable, especially in data engineering where clean and readable code matters. Open to feedback and discussion from fellow developers. #Python #DataEngineering #Programming #TechLearning #DeveloperJourney
To view or add a comment, sign in
-
How to - Python code for thermodynamic cycle calculations (Part 7 & 8) Click the links below to download the seventh and eighth, in a series of documents that demonstrate thermodynamic cycle calculations using the Python programming langauge. https://lnkd.in/gKdSefhi https://lnkd.in/gA8ByKws These documents focuses on Fuel usage and cooling water requirements in relation to the previously discussed thermodynamic cycles.
To view or add a comment, sign in
-
-
Worked on Python control flow fundamentals today: if–else for decision-making login while loops for condition-based repetition These constructs define how programs branch and iterate. Practiced small examples to understand execution flow and edge cases (true/false conditions, loop termination). Next: apply these in short scripts (input validation, counters, simple simulations). #Python #ProgrammingBasics #ControlFlow #LearningInPublic #BTech #Day6
To view or add a comment, sign in
-
-
🚀 LeetCode Day 17 Climbing Stairs problem 🧠 Dynamic Programming (DP) means: Solve a problem by breaking it into smaller subproblems, store their results, and reuse them. ✨ Key takeaway: DP helps avoid repeated calculations and makes solutions faster and cleaner. #DynamicProgramming #LeetCode #ProblemSolving #Python #LearningJourney
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development