Skip to main content

# Tag Info

## Hot answers tagged pyth

9 votes
Accepted

### Tuple Assignment in Pyth

This is exactly what the A builtin does: “Assign the first value of the list to G and the second to H. Return the input.” ...
• 39.7k
3 votes

### Tips for golfing in Pyth

Finding the maximum of two integers g# For instance, suppose you have J=5 and K=12. Then <...
• 42k
2 votes

### Tips for golfing in Pyth

Divisibility testing using I and GCD Disclaimer: This only works for non-negative integers. To check if two non-negative integers are divisible, you can do the ...
• 42.4k
1 vote

### Pyth Practice 2

60 59  57 bytes Note that I developed this solutions completely independently of other answers, although I am quite late to the party.
• 42.4k
1 vote

### Tips for golfing in Pyth

Assigning a variable to a function applied to itself If you have a function of arity 1, and want to apply that to a variable and apply to itself, you can use the following syntax: ...
• 42.4k
1 vote

### Tips for golfing in Pyth

Use Packed Pyth Packed Pyth is a new "programming language" which is exactly the same as Pyth, except that it uses 7 bits per character instead of 8 bits per character. To use it, clone the pyth ...
• 42k
1 vote

### Tips for golfing in Pyth

Telling if a Number is a Whole Number A neat trick is using Invariant to tell if a number is a whole number as such: sI This ...
• 25.7k

Only top scored, non community-wiki answers of a minimum length are eligible