Coding Computing Coach

13.5K posts

Coding Computing Coach banner
Coding Computing Coach

Coding Computing Coach

@CodingComputing

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 👇 Katılım Mayıs 2019
104 Takip Edilen9K Takipçiler
Sabitlenmiş Tweet
Coding Computing Coach
Coding Computing Coach@CodingComputing·
🚨 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: github.com/CodingComputin…
English
0
1
18
5.3K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
If a programming language allows something, doesn't automatically mean it's a good idea to do!
English
0
0
1
222
Pawel Jastrzebski 🇵🇱 🇬🇧
@CodingComputing @matplotlib I see your point but. But i honestly think these days Matplotlib has one of the best documentation for an open source project so once you've found the function you're looking for, there will be a clear explanation and plenty of examples waiting for you.
English
1
0
1
52
Coding Computing Coach retweetledi
Pawel Jastrzebski 🇵🇱 🇬🇧
This is the whole article summarised in one picture. Now, you can't say anymore you don't understand @matplotlib!
Pawel Jastrzebski 🇵🇱 🇬🇧 tweet media
Pawel Jastrzebski 🇵🇱 🇬🇧@pawjast

Read “All the Ways to Create New Figure and Axes in Matplotlib“ by Pawel Jastrzebski on Medium: @pawjast/all-the-ways-to-create-new-figure-and-axes-in-matplotlib-13079af64bc0" target="_blank" rel="nofollow noopener">medium.com/@pawjast/all-t…

English
3
14
96
8.5K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
For anyone who needs to know... Kolourpaint does on Linux what Paint does on Windows
English
0
0
2
233
Coding Computing Coach
Coding Computing Coach@CodingComputing·
A bug is when code output differs from intended output. To find out why so... You need to know *exactly* what the code is doing. That's the only solid way to diagnose.
English
0
0
1
219
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Pro tip: Always keep a Live USB ready. You'll be thankful when you need it.
English
0
0
1
188
Coding Computing Coach
Coding Computing Coach@CodingComputing·
When you look at small chunks of code, ask yourself: - What is this code supposed to do? - Which parts looks tricky? - How does it do what it's supposed to do? That helps to properly understand the code going forward.
English
0
0
1
209
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Debugging isn't about changing code. It's about finding what to change.
English
0
0
1
177
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Solving bugs expands your capabilities. Because you improved on something you messed up before.
English
0
0
0
167
Coding Computing Coach
Coding Computing Coach@CodingComputing·
I would try to write "optimized" code from the very start of the project. I had the attitude "If we are doing it let's do it right". But my concept of "right" was wrong. Clarity is the right target to shoot for at the start. Not optimization.
English
0
0
1
174
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Most important reason to be careful of AI: It tells you what it thinks you would like to hear. And that most often is that you're absolutely right.
English
0
0
3
158
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Salute to the people who can code properly... ...when someone is watching as you code.
English
0
0
0
126
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Why wait to clarify specs when I can code right away? Try: - Take up a specification - Write code tailored for it - Polish and optimize - Now change to another specification - Wonder if you should scrap & rewrite the whole thing Pain. Avoid.
English
0
0
1
131
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Multiplying a string with int:
Coding Computing Coach@CodingComputing

@PythonPr Answer: D 9999 Solution: Observe that '9' is a string, not an int. b is an int 4. So, a * b is a multiplication of string and int. Sounds strange, but this is just repetition of the string. So, '9' * 4 is the string '9' repeated 4 times, ie, 9999 that's what gets printed.

English
0
0
0
136
Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
56
13
173
27.9K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr Answer: D 9999 Solution: Observe that '9' is a string, not an int. b is an int 4. So, a * b is a multiplication of string and int. Sounds strange, but this is just repetition of the string. So, '9' * 4 is the string '9' repeated 4 times, ie, 9999 that's what gets printed.
English
0
0
11
1.4K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
Do you doubt whether python sneakily changes variables?
Coding Computing Coach@CodingComputing

@PythonPr Answer: B) hello Solution: On the surface it looks trivial. s is initialized 'hello'. t is assigned s. s is modified to upper. So it 'HELLO' now t is printed. What is the value of t? t hasn't explicitly been changed, so it's going to the initial 'hello'. But you might +

English
0
0
0
146
Python Programming
Python Programming@PythonPr·
Python Question / Quiz; What is the output of the following Python code, and why? Comment your answers below!
Python Programming tweet media
English
32
10
146
27.3K
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr s now references a different object than before. This wasn't a mutation where s references the same object, but the object itself has changed. So, what about t? t still references the original object, which hasn't changed at all. Therefore, the value of t is 'hello'.
English
0
0
1
93
Coding Computing Coach
Coding Computing Coach@CodingComputing·
@PythonPr s.upper() s.upper cannot modify the existing object 'hello' because it's immutable. So, s.upper() has NO CHOICE other than create a new string object 'HELLO' and return it. The returned object is referenced to s via `=` s = s.upper() So this was a re-assignment, ie, +
English
1
0
1
103