Questions tagged [pyth]
related to the Pyth language. Note that challenges that require the answers to be in a specific language are generally discouraged.
9
questions
5
votes
1
answer
439
views
Tuple Assignment in Pyth
I was wondering if there is any way to assign 2 values (G and H) to say a list of ["egg", "chicken"] in Pyth. In python it would be something along the lines of
...
2
votes
0
answers
69
views
Skip or delete lines between two keywords in a file using python [closed]
The problem is I need to skip or delete all the lines between the two keywords in a file and the keyword pair will appear many times in the file.The file looks something like this
...
21
votes
5
answers
770
views
Pyth Practice 2
Time for another Pyth practice. I present here 8 problem statements with a Pyth solution each. These solutions are written by a Pyth beginner. He is quite happy about these solutions, since they are a ...
24
votes
9
answers
3k
views
How can Pyth be improved? [closed]
Pyth is in ongoing development, meaning that new features are being added all the time.
I want to make Pyth a better langauge, so I'd like to know what features people are looking for.
This is the ...
10
votes
1
answer
873
views
Shortening a long number
When dealing with long numbers when code golfing, getting the length of your code down can be difficult, so do you have any tips for making a number shorter and easier to manage?
For example, the ...
9
votes
3
answers
2k
views
GolfScript, CJam, or Pyth? [duplicate]
Which language usually produces shorter golfed code: Pyth, CJam or Golfscript?
In asking this, I do not mean which has a prettier syntax or which has the most useful commands, I mean overall, which ...
10
votes
5
answers
800
views
Golf Practice: Pyth [closed]
This is a challenge about the the tricks and optimizations that can be used when golfing in Pyth. Pyth golfers may recognize many of the tricks involved. However, unfamiliar approaches and constructs ...
1
vote
1
answer
121
views
Pythy Finite Ordinals [duplicate]
Write a program in any language that takes a single natural number n as input and generates a Pyth program that, in turn, produces, using nested lists, the nested set given by S(n), where:
S(0) = ∅
...
49
votes
24
answers
8k
views
Tips for golfing in Pyth
Pyth is a Python-inspired procedural programming language, created by PPCG user isaacg.
What general tips do you have for golfing in Pyth? I'm looking for ideas that can be applied to code golf ...