Day 66 – Counting Characters in a File Using Python: Day 66 focused on counting the number of characters in a text file using Python. I practiced reading the file content and calculating the total characters using the len() function. The exercise was implemented using both the traditional file handling method and the with statement, helping me better understand string length calculation and safe file operations in Python. GitHub Code: https://lnkd.in/gPgaTWKs #Day66 #100DaysOfCode #Python #FileHandling #LearningPython #CodingJourney #DailyCoding #Consistency
Counting Characters in a File with Python
More Relevant Posts
-
Day 67 – Finding the Longest Word in a File Using Python: Day 67 was about finding the longest word in a text file using Python. I read the file content, split the text into words, and used the max() function with the key=len argument to identify the longest word. I practiced both normal file handling and the with statement method to improve my understanding of file operations and string processing in Python. GitHub Code: https://lnkd.in/gfwy38D7 #Day67 #100DaysOfCode #Python #FileHandling #CodingJourney #Consistency
To view or add a comment, sign in
-
-
📅 Day 1 – Learning Python Strings 🐍 Today I started learning about strings in Python. 🧠 What is a String? A string is a sequence of characters used to store text data (e.g., "welcome"). 📚 What I learned: • Strings are immutable (cannot be changed after creation) • We can access characters using indexing • We can reverse a string using slicing 💻 I also tried a small program to reverse a string (added in image 👇) 🚀 Learning step by step. #Python #LearningJourney #100DaysOfCode #BeginnerDeveloper
To view or add a comment, sign in
-
-
Built a simple Dice Roller using Python. As part of practicing Python basics, I created a small program that simulates rolling a dice. This program: • Generates a random number between 1 and 6 • Allows the user to roll multiple times • Uses loops and user input for interaction Through this project, I practiced: • Random module • Loops • Conditional statements • Handling user input It’s a simple project, but it helped me understand how randomness and control flow work together. Still learning and building step by step. #Python #BeginnerProject #DiceRoller #LearningInPublic #CodingJourney
To view or add a comment, sign in
-
-
Unlock the Power of Sums with Python Tuples Discover the different methods to sum tuple elements and learn how to apply them in real-world scenarios. Python SummationMethods ITFreshers Read the full article 👉 https://lnkd.in/dHWhuU-K #PythonProgramming #Tuples #SummationMethods #ITFreshers #PerformanceOptimization #TechLab Code. Learn. Build. — TechLab by Neeraj
To view or add a comment, sign in
-
🤜 Python Challenge #2 – Answer Revealed! b = a does not create a new list. It simply makes b reference the same list object in memory as a. When we do: a += [4] Python modifies the list in-place instead of creating a new one. Since both a and b point to the same list, the change appears in both variables. #Python #PythonLearning #CodingChallenge #100DaysOfCode #LearnPython
To view or add a comment, sign in
-
-
Day 19 of my 20 Day Linkedin Challenge I recently learned about loops in Python. Here’s the simplest way to understand them: A loop tells the computer to repeat something. Instead of writing the same instruction multiple times you write it once and let the loop handle the repetition. For example: If you want to print numbers from 1 to 10, You don’t write 10 separate lines. You use a loop. This matters because computers are great at repetition. Loops allow you to: - save time - reduce errors - handle large tasks efficiently It’s one of those concepts that seems small but it’s actually very powerful. #AfricaAgility #ArtificialIntelligence #Python #MachineLearning #GIT20DayChallenge
To view or add a comment, sign in
-
Day 71 – Map Function in Python: Day 71 focused on learning the map() function in Python, which is used to apply a function to every item in an iterable like a list. I practiced using map() along with lambda functions to square numbers in a list and to create greeting messages for a list of names. This exercise helped me understand how map() can process data efficiently and reduce the need for traditional loops, making Python code more concise and functional. GitHub Code: https://lnkd.in/gxBQmHAs #Day71 #100DaysOfCode #Python #MapFunction #Lambda #LearningPython #CodingJourney #DailyCoding #Consistency
To view or add a comment, sign in
-
-
🤖 I use claude code predominantly on Python and Rust at the moment. My feeling is that it works significantly better on Rust than on Python code bases. Do others observe the same? I don't think its just the strong typing. Maybe also the compiler feedback?! Not sure. What do you think? #Python #Rustlang #LLMS #Claude
To view or add a comment, sign in
-
In Python, when two variables point to the same list, any mutation (like append) affects both. But when we use +, Python creates a new list, and the original reference remains unchanged. This shows the difference between modifying an object and creating a new object. #Python #Lists #Mutation #MemoryManagement #LearningInPublic #CodingJourney #ProblemSolving #PythonChallenge Answer: B) [1, 2, 3, 4]
To view or add a comment, sign in
-
Explore related topics
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