Coding Computing Coach
@CodingComputing
Followers
9K
Following
9K
Media
335
Statuses
13K
Making Python simple for you, by exploring the fundamentals. Tips and explanations to become code-literate in this AI age. Building @PythonResources
Maximize your coding skills 👇
Joined May 2019
🚨 Python Testing Series 🚨 Employ testing to gamify your coding. Learn how to test code using pytest. Build a Cash Dispenser project in Test Driven style. Ongoing series of posts, see README at: https://t.co/yOR9qXSARE
github.com
Contribute to CodingComputing/gamified-testing development by creating an account on GitHub.
0
1
18
In what ranks as a world-first, I witnessed a lion bone burn in South Africa this week. Appalling but necessary. Read about it @mailonline here
dailymail.co.uk
Amid great secrecy, in the presence of just a few others, I witnessed a scene that's never occurred here or anywhere else in the world before: the burning of dozens of lion bones.
89
167
1K
What's the difference between `is` and == in python?
@PythonPr Answer: C Solution: The difference between `is` and `==` confuses many. Key is to understand how names and values work in python. Think of values as things. Like, say suitcases. And, names are like label tags put on these suitcases. The value is the actual "thing" (data) +
0
0
0
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
12
5
77
Dictionary `get` method vs []
@PythonPr Answer: B Solution: my_dict is a dict with 3 keys: 'a', 'b', and 'c'. Let's figure out what's: my_dict.get('d', 4) The `get` dictionary method is used to get value for a key from the dictionary. Similar to [] notation. But there is a difference. If you try to access +
0
0
0
When people fear medical bills more than medical problems, they make absurd trade-offs. Like swapping the ambulance ride for their buddy’s hatchback. Take care of your health tax free by opening an HSA at HSA Bank. Have a Bronze healthcare plan? You’re now HSA eligible.
0
0
39
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
15
10
110
Coding sucked for me initially. Because I treated each error as a criticism. But as I practiced more I realized... It's not criticism. It's feedback. It guides you on what to change. Treat errors as signposts. It's nothing personal.
0
1
1
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
45
12
114
She didn’t get here overnight, and she didn’t get here alone. In Episode 1 of Amplified in partnership with @nationwide, aerospace trailblazer @aishabowe reflects on learning how to dream, participating in our economy, and redefining what's possible.
0
31
282
Myth: ❌ only "geniuses" can code ❌ high-level maths is needed ❌ high-end setup is needed Truth: ✅ Fundamentals take work, improve with practice ✅ For most applications, high-school math is more than enough ✅ If the PC can run a browser, that's good enough to learn coding
0
0
1
For vibe coding you just need to tell the idea. For vibe debugging you need to know exactly why the code is acting up. If you're not up to the task of writing code yourself... no way you'll be ready for debugging.
0
0
2
Multiplying a string by 0
@PythonPr Answer: Technically, nothing (no returns, doesn't even print quotes) Solution: `*` of str and int gives repetition of string. Eg, "Py" * 3 gives "PyPyPy" If the multiplication is by 0, means 0 repetitions of the str, ie, empty string. So, "Python" * 0 is "" When printed, +
0
0
1
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
35
22
211
In 2000, the S&P 500 had an elevated trailing P/E of 26, well above its long-term avg. of 14. For the next 11 years, the S&P 500 delivered zero returns! The current S&P 500 trailing P/E is 30 – even higher than 2000. History rhymes. For standardized performance visit our website.
0
35
223
@Python_Dv Answer: A. 17 Solution: We have to evaluate 2 ** 3 + 3 ** 2 `**` is the exponential operator. It has higher precedence than `+`. Therefore, `**`s get evaluated first, like so (2**3) + (3**2) This is the sum of cube of 2 (=8) and square of 3 (=9) ie, 8 + 9 = 17 That's the ans.
0
1
11
Being a developer is strange: you’re constantly learning, yet constantly feeling like you know nothing.
150
98
726
📊 Private equity continues to deliver some of the strongest long-term returns for retirees. New AIC research shows 13.5% median annualized returns over 10 years—benefiting 34M teachers, firefighters & public servants. See the full data.
2
1
14
@trikcode Switching between "I've no idea why this breaks" to "I figured it out!" is insane
0
2
5
Arithmetic operations on Bools?
@Python_Dv Answer: B. False Solution: Let's go checking the if-condition, which is (3>2) > 1 Now remember that no matter what, attack the parenthesis first. So we solve (3>2), ie, True Expression simplifies to True > 1 It's a bit of a fix now. Because how to compare a bool with int? +
1
0
1
Do list comprehensions make your head spin? Worry not, this thread has you covered.
@PythonPr Answer: C. [8, 12] Solution: a and b are lists. Then there is a list comprehension that gives c. Let's analyze the list comprehension. Here is the trick to analyze list comps: 🗝️ Look for 3 things: `for`, `in`, and `if` (`if` is optional, sometimes it may not be there) +
0
0
0
Chevron’s AI platform APOLO is transforming shale operations, with up to 20% more accurate production forecasts. Learn how APOLO helps us make smarter, faster decisions.
1
1
22