Skip to main content

Questions tagged [python]

This challenge is related to the Python language. Note that challenges that require the answers to be in a specific language are generally discouraged.

0 votes
1 answer
86 views

You have to code in python, and the number generated by your code must be bigger than all other current submissions. You need to make your code as small as possible, it has to terminate but you can ...
IAmNotLarry's user avatar
0 votes
1 answer
326 views

I have the following Python code, which is 214 bytes long: ...
RannStudio's user avatar
1 vote
0 answers
90 views

Write a piece of code that is compatible with both C and Python compilers/interpreters, which can output its own source code. Quine is quite easy, but how about this double language version? Hint: To ...
NoNormalCreeper's user avatar
6 votes
4 answers
637 views

Code Golf Challenge Given a string of 10 characters: 'abcdefghij' I want to format it in this pattern and print it in the console in a minimum number of characters: ...
Karine Bauch's user avatar
8 votes
1 answer
563 views

Goal: create a self-referencing tuple satisfying x == (x,) in any version of Python. Standard libraries, matplotlib, numpy, pandas only. Answers meeting this extra ...
Shuri2060's user avatar
  • 191
-3 votes
1 answer
588 views

So I got kinda bored and was wondering if it was possible to make this code shorter without modifying anything except a file named coin.py... ...
Eric's user avatar
  • 121
6 votes
2 answers
450 views

I have the code: ...
Dark Programmer's user avatar
9 votes
2 answers
691 views

I want to read two strings on separate lines, each string the same length and containing only 0's and 1's, and determine if the first is the one's complement of the second. How succinctly can this be ...
Fixee's user avatar
  • 191

15 30 50 per page
1
2 3 4 5
10