learn-python icon indicating copy to clipboard operation
learn-python copied to clipboard

๐Ÿ“š Playground and cheatsheet for learning Python. Collection of Python scripts that are split by topics and contain code examples with explanations.

Results 39 learn-python issues
Sort by recently updated
recently updated
newest added

Fixed typos and improved Python scripts

Added user name to user input

"badge__thisDevice": "This device", "badge__thisDevice": "This device", "badge__thisDevice": "This device", "badge__thisDevice": "This device", "badge__thisDevice": "This device",

This PR adds "Open in Codeanywhere" badge at the top of Readme file. Codeanywhere is a cloud-based Integrated Development Environment (IDE) that allows developers to code, learn, build, and collaborate...

import matplotlib.pyplot as plt x = [1, 2, 3, 4] y = [10, 20, 25, 30] plt.plot(x, y) plt.title("ู…ุซุงู„ ุฑุณู… ุจูŠุงู†ูŠ") plt.xlabel("X") plt.ylabel("Y") plt.grid(True) plt.show()

The current test_numbers.py file provides comprehensive coverage for standard operations and type checks for integers, booleans, floats, and complex numbers. However, it would be beneficial to add more test cases...

In the function test_list_comprehensions(), under the list comprehension that cleans up whitespace from a list of fruit names, the variable weapon is used instead of a more context-appropriate name such...

The comment "# You may access set elements by keys." is misleading. The code is about dictionaries, not sets. In Python, set elements cannot be accessed by keysโ€”only dictionary elements...