Skip to main content
Commonmark migration
Source Link

##Pyth, 13 bytes

Pyth, 13 bytes

++hz:zhQ_hQez

Explanation:

              - autoassign z = input()
              - autoassign Q = eval(input())
    :zhQ_hQ   -  z[Q+1:-(Q+1)]
++hz       ez - z[0]+^+z[-1]

Try it here

##Pyth, 13 bytes

++hz:zhQ_hQez

Explanation:

              - autoassign z = input()
              - autoassign Q = eval(input())
    :zhQ_hQ   -  z[Q+1:-(Q+1)]
++hz       ez - z[0]+^+z[-1]

Try it here

Pyth, 13 bytes

++hz:zhQ_hQez

Explanation:

              - autoassign z = input()
              - autoassign Q = eval(input())
    :zhQ_hQ   -  z[Q+1:-(Q+1)]
++hz       ez - z[0]+^+z[-1]

Try it here

Source Link
Blue
  • 28.6k
  • 8
  • 52
  • 100

##Pyth, 13 bytes

++hz:zhQ_hQez

Explanation:

              - autoassign z = input()
              - autoassign Q = eval(input())
    :zhQ_hQ   -  z[Q+1:-(Q+1)]
++hz       ez - z[0]+^+z[-1]

Try it here