Friday brings #Python It's time to post about ELSE for loops. Yeah, that's right. Python allows you to pair ELSE with FOR or WHILE in a way that the ELSE block executes only if the loop was finished naturally without interruption by BREAK.
Ivan Karabadzhak’s Post
More Relevant Posts
-
Benchmarking Python vs Rust across real use cases shows a clear pattern: performance depends on workload, not language hype. Rust excels in CPU-heavy tasks, while Python can outperform with optimized libraries. The real decision is aligning performance gains with business impact. #Blog #FAMRO #Python #RUST #Benchmarking https://lnkd.in/dDgvQ9mC
To view or add a comment, sign in
-
-
Python’s Modern Runtime: JIT. Free-threading. Subinterpreters. Short notes — what’s stable, what’s not, what actually changes in your code. #Python #PythonJIT #FreethreadedPython #Subinterpreters #Python314
To view or add a comment, sign in
-
In Python, empty values like an empty string are considered False. When we apply bool() again on a boolean value, it remains the same. Answer: A) False <class 'bool'> #Python #Boolean #Truthiness #PythonBasics #LearningInPublic #CodingJourney #ProblemSolving
To view or add a comment, sign in
-
-
Python does not always automatically convert data types during operations. When we try to combine incompatible types like string and boolean, Python raises an error instead of guessing the conversion. Understanding type compatibility is important to avoid runtime errors. Answer: C) TypeError #Python #TypeConversion #PythonBasics #BeginnerFriendly #CodingJourney #LearningInPublic #ProblemSolving
To view or add a comment, sign in
-
-
Backslashes are special characters in Python strings. Using double backslash (\\) allows us to represent a single backslash in the output. Answer: A) yes\no #Python #Strings #EscapeCharacters #PythonBasics #LearningInPublic #CodingJourney #ProblemSolving
To view or add a comment, sign in
-
-
Want to include a dynamic value in a multi-line #Python string? That would require both an f-string and a triple-quoted string. Good news: Python supports this! x = 10 y = 20 s = f"""{x} + {y} = {x+y} {x} * {y} = {x*y}""" print(s) # shows 10+20 = 30 and also 10*20 = 200
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
-
-
The Python ecosystem is undergoing a massive shift, and Rust is leading the charge. Moving my package management to uv and linting to Ruff has cut pipeline times to a fraction. Speed is a security feature. #Python #Rust #DevSecOps
To view or add a comment, sign in
-
DAY 28 OF PYTHON CHALLENGE #Wapp for append() function (dynamically) l=[ ] n=int(input("enter how many entries u want?")) for i in range(n): a=input("enter the elements") l.append(a) print(l) output: enter how many entries u want 3 enter the element 100 enter the element abc enter the element 9.9 ['100','abc','9.9'] #coding #python #challenge #mca #30days
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