🧠 Day 12 of 75 Days of Knowledge Theme: Functions & Methods — Java | Python | JavaScript Functions are how we organize logic into reusable blocks. They make your code cleaner, smarter, and easier to test. Today’s focus: how functions work, pass values, and return results in each language. 💡 Concepts Covered Defining and calling functions Function parameters and arguments Return values and scope Default & keyword arguments (Python) Function overloading (Java) Arrow functions (JavaScript) Pass by value vs reference 📚 Learn Functions in Each Language 📘 Python — Functions 👉 https://lnkd.in/g5xhz9Aj 👉 https://lnkd.in/g42sJBRD 📗 Java — Methods 👉 https://lnkd.in/gQuK4T9b 👉 https://lnkd.in/gn2f2pz6 📙 JavaScript — Functions 👉 https://lnkd.in/gmfbZkdA 👉 https://lnkd.in/gUyQ74N8 🧩 Try This Practice Idea Write a function to find factorial of a number Create a function to check prime numbers Make a greeting function with parameters Try recursive function for Fibonacci series #75DaysOfKnowledge #ProgrammingBasics #Functions #Methods #CodeReusability #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
"Day 12: Functions & Methods in Java, Python, JavaScript"
More Relevant Posts
-
🔥 Day 5 of 75 Days of Knowledge Theme: Input and Output (I/O) Operations — Java | Python | JavaScript Every interactive program depends on I/O — taking user input and displaying results. From reading numbers to handling files, mastering I/O gives your code the ability to communicate with the real world. 🌍 💡 Concepts Covered Reading input from users Displaying formatted output File reading & writing basics Console-based interaction 📚 Learn I/O in Your Favorite Language 📘 Python – Input, Output & Files 👉 https://lnkd.in/gHEKrd_T 👉 https://lnkd.in/guDkuq98 📗 Java – Input/Output & File Handling 👉 https://lnkd.in/gF-3Tb7D 👉 https://lnkd.in/gkMwMKaf 📙 JavaScript – Input, Output & File Reading (Node.js) 👉 https://lnkd.in/gWnnAxe6 👉 https://lnkd.in/gXssxiii Hands-On Practice 🧠 Try online: https://replit.com/~ 💡 Visualize flow: https://pythontutor.com/ #75DaysOfKnowledge #LeetCode #Java #Python #JavaScript #InputOutput #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🔥 Day 6 of 75 Days of Knowledge Theme: Operators & Expressions — Java | Python | JavaScript Operators are the tools that make logic work. They help us calculate, compare, and make decisions in code. Today’s focus was on mastering expressions — how data combines and transforms using operators. 💡 Concepts Covered Arithmetic, Comparison & Logical Operators Assignment & Bitwise Operators Operator Precedence Expressions & Evaluation 📚 Learn Operators in Each Language 📘 Python – Operators Made Simple 👉 https://lnkd.in/g9MTvK3F 👉 https://lnkd.in/gVgBrR4s 📗 Java – Operator Types & Precedence 👉 https://lnkd.in/gMJcCe9z 👉 https://lnkd.in/gBefza2s 📙 JavaScript – Expressions & Operators 👉 https://lnkd.in/gHjTpPk9 👉 https://lnkd.in/gjnhepYH 🧮 Mini Practice Ideas ✅ Try building a simple calculator ✅ Compare user inputs with logical operators ✅ Experiment with precedence using parentheses 💡 Practice online: https://replit.com/~ 💬 Reflection: Understanding operators builds the logic engine inside your brain 🧠 Every condition, loop, and algorithm you write relies on mastering these small but powerful symbols. #75DaysOfKnowledge #ProgrammingBasics #Operators #Expressions #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🧠 Day 9 of 75 Days of Knowledge Theme: Functions & Modular Programming — Java | Python | JavaScript Functions are like mini-programs inside your program — they take input, do something, and give back results. They make your code clean, reusable, and easier to debug. Today’s focus: defining, calling, and returning values from functions, and learning parameters, scope, and modularity. 💡 Concepts Covered Function definition & calling Parameters and arguments Return values Local vs global scope Reusable modular code 📚 Learn Functions in Each Language 📘 Python — Functions & Return Values 👉 https://lnkd.in/g5xhz9Aj 👉 https://lnkd.in/g42sJBRD 📗 Java — Methods in Java 👉 https://lnkd.in/gv_ZSdVe 👉 https://lnkd.in/gn2f2pz6 📙 JavaScript — Functions 👉 https://lnkd.in/gmfbZkdA 👉 https://lnkd.in/gUyQ74N8 🧩 Try This Practice Idea Write a function to find the factorial of a number Build a greeting function that takes a name and returns a message Create a calculator using multiple small functions #75DaysOfKnowledge #ProgrammingBasics #Functions #ModularProgramming #CleanCode #Java #Python #JavaScript #LeetCode #CodingJourney #LearnToCode
To view or add a comment, sign in
-
🧠 Day 11 of 75 Days of Knowledge Theme: Strings & Character Arrays — Java | Python | JavaScript Strings are how we represent text, names, and messages in code. They look simple — but they hide deep logic for manipulation, comparison, and pattern matching. Today’s focus: String creation, operations, and common interview problems. 💡 Concepts Covered String declaration and immutability String concatenation and interpolation Traversing strings using loops Common methods (length, substring, indexOf, replace, split, join) String comparison & character arrays Converting between strings and numbers 📚 Learn Strings in Each Language 📘 Python — Strings 👉 https://lnkd.in/gfwG6ztm 👉 https://lnkd.in/gSkGf3MG 📗 Java — Strings & StringBuilder 👉 https://lnkd.in/gFJwy5FK 👉 https://lnkd.in/g--34c7f 📙 JavaScript — Strings 👉 https://lnkd.in/gUWfvU4Z 👉 https://lnkd.in/gM-mRGNf 🧩 Try This Practice Idea Reverse a string manually (without built-ins) Count vowels and consonants Check if a string is palindrome Find frequency of each character 🧠 Practice Online → https://replit.com/~ #75DaysOfKnowledge #Strings #ProgrammingBasics #Java #Python #JavaScript #ProblemSolving #LeetCode #CodingJourney #LearningToCode
To view or add a comment, sign in
-
🚀 Quick Experiment: Comparing Lines of Code Across Languages I recently did a small personal experiment to compare how many lines of code (LOC) are typically required to implement the same task in Python, Java, and C++. 📌 Assumption: Each new statement appears on its own line — no one-liners or compressed logic. Here are the results: 🐍 Python: 11 LOC ☕ Java: 36 LOC 💻 C++: 44 LOC Key Takeaways Python is very concise for implementing tasks. Java requires more structure and verbosity. C++ is the most verbose among the three. 💡 Note: This experiment considers Lines of Code only, not execution speed or efficiency. I’d love to hear your thoughts: Do you value code compactness over verbosity for readability and maintenance? Hashtags #Programming #Python #Java #CPlusPlus #CodeEfficiency #SoftwareDevelopment #CodingExperiment #DeveloperInsights #TechLearning #ProgrammingTips
To view or add a comment, sign in
-
Day 7 – Perfect Number (Java & Python) 💡 Problem: A Perfect Number is a positive integer that is equal to the sum of its proper divisors (excluding itself). Examples: 6 → 1 + 2 + 3 = 6 ✅ 28 → 1 + 2 + 4 + 7 + 14 = 28 ✅ 12 → 1 + 2 + 3 + 4 + 6 = 16 ❌ 🧠 Approach: 1️⃣ Initialize a sum = 1 (since 1 is always a divisor). 2️⃣ Loop from 2 to √n → if i divides n, add both divisors (i and n/i). 3️⃣ After the loop, check if sum == n. Optimization: Instead of checking all numbers till n–1, we only check till √n. Time Complexity: O(√n) Space Complexity: O(1)** Your Turn: Did you know that 6, 28, 496, and 8128 are all Perfect Numbers? Can you find the next one? 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Numbers #MathInCode #SoftwareEngineer #BackendDeveloper #InterviewPrep #LogicalThinking
To view or add a comment, sign in
-
-
Some languages did not get the class implementations right. In Rust and Python, you need to access class/struct fields through "self". In Go language, you usually access struct fields using a single letter variable like "s" for Server struct. All this is unnecessary, you should be able to access class/struct fields like you would access local variables. This is how it is done in Java and C++. Cluttering the class/struct code with "self" makes the code less readable.
To view or add a comment, sign in
-
Day 8 – Strong Number (Factorial Sum of Digits) – Java & Python 💡 Problem: A number is called a Strong Number (or Factorion) if the sum of the factorial of its digits equals the number itself. Examples: 145 → 1! + 4! + 5! = 145 ✅ 2 → 2! = 2 ✅ 40585 → 4! + 0! + 5! + 8! + 5! = 40585 ✅ 123 → 1! + 2! + 3! = 9 ❌ 🧠 Approach: 1️⃣ Extract each digit of the number. 2️⃣ Find the factorial of that digit and add it to a running sum. 3️⃣ Compare the final sum with the original number. Optimization Tip: Precompute factorials of digits 0–9 once and reuse them — avoids repetitive calculations. Time Complexity: O(d) Space Complexity: O(1) where d = number of digits. our Turn: Did you know there are only four Strong Numbers (1, 2, 145, 40585) under 1 million? Try running the code and share your results 👇 #CodeWithTanseer #DSA #Java #Python #CodingChallenge #ProblemSolving #Numbers #MathInCode #SoftwareEngineer #BackendDeveloper #InterviewPrep #LogicalThinking #Factorial
To view or add a comment, sign in
-
-
⚡ 1 billion nested loop iterations — language speed test ⚡ Some take milliseconds (C, Rust, Java, Go)… Others take coffee break levels of time ☕🐢 (Python, R). It’s a great reminder: ✅ Choose the right tool for the job ✅ Performance matters for heavy computation ✅ But developer productivity matters too #Programming #Performance #Benchmarks #SoftwareEngineering #Developers #RustLang #GoLang #Java #Kotlin #Python #NodeJS
To view or add a comment, sign in
-
-
🤔 Python or Java for your next backend project in 2025? The debate rages on, but which one aligns with your goals—rapid prototyping with Python's simplicity or Java's rock-solid enterprise scalability? In our latest blog, we break it down: From syntax showdowns (Python's 3 lines vs. Java's 10) and performance edges (Java's JIT speed for high-traffic apps) to real-world wins like Netflix's AI magic with Python and LinkedIn's billion-user backbone in Java. Discover strengths, drawbacks, use cases, and when to pick each to future-proof your tech stack. Dive in: https://lnkd.in/dcqu87jS Python fan or Java loyalist? Drop your pick and why below! 👇 #PythonVsJava #BackendDevelopment #ProgrammingLanguages #TechTrends #SoftwareEngineering
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