Skip to main content
Commonmark migration
Source Link

#Pyth, 7 bytes

Pyth, 7 bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

#Pyth, 7 bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

Pyth, 7 bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed
deleted 504 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

#Pyth, 4 bytes

XEGQ

Try it online!

How it works:

XEGQ
     Q = input()
XEGQ input().translate("abcdefghijklmnopqrstuvwxyz",Q)
X           .translate(                            , )
 E   input()
  G                    "abcdefghijklmnopqrstuvwxyz"
   Q                                                Q

A more honest 7-byte answer: bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

#Pyth, 4 bytes

XEGQ

Try it online!

How it works:

XEGQ
     Q = input()
XEGQ input().translate("abcdefghijklmnopqrstuvwxyz",Q)
X           .translate(                            , )
 E   input()
  G                    "abcdefghijklmnopqrstuvwxyz"
   Q                                                Q

A more honest 7-byte answer:

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

#Pyth, 7 bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed
added 503 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284

#Pyth, 74 bytes

XEGQ

Try it online!

How it works:

XEGQ
     Q = input()
XEGQ input().translate("abcdefghijklmnopqrstuvwxyz",Q)
X           .translate(                            , )
 E   input()
  G                    "abcdefghijklmnopqrstuvwxyz"
   Q                                                Q

A more honest 7-byte answer:

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

#Pyth, 7 bytes

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed

#Pyth, 4 bytes

XEGQ

Try it online!

How it works:

XEGQ
     Q = input()
XEGQ input().translate("abcdefghijklmnopqrstuvwxyz",Q)
X           .translate(                            , )
 E   input()
  G                    "abcdefghijklmnopqrstuvwxyz"
   Q                                                Q

A more honest 7-byte answer:

V.zXNGz

Try it online!

How it works:

V.zXNGz
        G = "abcdefghijklmnopqrstuvwxyz"
        z = input()
V.z     for N in all_input():
   XNGz     N.translate(G,z)    <--- automatically printed
added 259 characters in body
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284
Loading
Source Link
Leaky Nun
  • 50.1k
  • 6
  • 110
  • 284
Loading