
Coding Computing Coach
13.5K posts

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





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…

@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.


@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 +




