Skip to content

Instantly share code, notes, and snippets.

@brentxphillips
Created July 4, 2021 21:35
Show Gist options
  • Save brentxphillips/f623e2ade8d641cb6eafc88a84c6629f to your computer and use it in GitHub Desktop.
Save brentxphillips/f623e2ade8d641cb6eafc88a84c6629f to your computer and use it in GitHub Desktop.
Prints string, letter-by-letter
# prints a string letter-by-letter
def num_letter_test(x):
string_input = x
string_len = len(string_input)
counter = 0
for i in range(string_len):
print(string_input[counter])
counter += 1
def main():
output = num_letter_test("length")
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment