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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
100 views

I recently saw this post, and apparently, the last well-defined stage of the Strong Array Notation, the Dropping Array Notation, grows faster than D^5(k), which lead me to creating this post. Your ...
IAmNotLarry's user avatar
-1 votes
1 answer
146 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
4 votes
1 answer
139 views

What is Buckshot Roulette? Buckshot Roulette is an indie game, released by Mike Klubnika to itch.io in 2023. Okay, but how do you play? To quote from the wiki: "At its core, Buckshot Roulette is ...
Natelolzzz's user avatar
0 votes
1 answer
330 views

I have the following Python code, which is 214 bytes long: ...
RannStudio's user avatar
3 votes
5 answers
412 views

You are in charge of running a board game tournament. Unfortunately, you only have one copy of the game and only so much time, so only a limited number of games can be played. Similarly, you have a ...
Spitemaster's user avatar
  • 2,189
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
0 votes
1 answer
402 views

The following code is 47 characters. print(("Ekki v","V")["COV"in input()]+"eikur!") How can it be reduced to 46 or less? I ...
LargeHorse's user avatar
6 votes
4 answers
640 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
18 votes
16 answers
3k views

In this challenge, you will play the iterated Prisoner's Dilemma, but with a twist: There's also an adversary trying to mess you up! The Prisoner's dilemma is a scenario in game theory where there are ...
izzyg's user avatar
  • 42.4k
8 votes
1 answer
570 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
5 votes
3 answers
532 views

Background In Python, function arguments are defined within the parentheses following the function name in the function definition. There are different ways to present function arguments, and they can ...
Mardoxx's user avatar
  • 181
-3 votes
1 answer
595 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
17 votes
19 answers
6k views

The bots are looking for love. Can you help them? The rules The goal of this game is find the bot you have the highest compatibility with. However, robots, who are inexperienced at dating are unable ...
mousetail's user avatar
  • 14.4k
6 votes
2 answers
452 views

I have the code: ...
Dark Programmer's user avatar
27 votes
14 answers
3k views

Python string parsing has quite a few edge cases. This is a string: "a" Putting 2 strings immediately after each other implicitly concatenates them, so ...
mousetail's user avatar
  • 14.4k

15 30 50 per page
1
2 3 4 5
10