Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 250105

Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability. Use the python tag for all Python related questions. If you believe your question may be even more specific, you can include a version specific tag such as python-3.x.

-1 votes
Accepted

Any better script using regular expressions?

It does not make a lot of sense to use this python script as a CLI tool, either - grep -o | wc -l will do it for you, but I digress. …
Lodinn's user avatar
  • 153
1 vote

Apply a funtion to each element of a dataframe according to other elements values in the cor...

It seems that you have some old-school file with headers there. Overall, the approach of reading it in two passes is fine - the rest, however, is fairly hard to read. Variable names convey little mean …
Lodinn's user avatar
  • 153
2 votes

Python random number guessing game

Do not call your class Test - it does not perform tests, does it? You are initializing some variables (notably, attempt) outside of the class responsible for handling the game state. Make this logic …
Lodinn's user avatar
  • 153
1 vote

Outputting a graphic using functions

A potentially problematic part of the code above is that it does not generalize well: in essence, what your code achieves is decomposing the task into drawing lines with corners of the grid in them an …
Lodinn's user avatar
  • 153