Created
July 4, 2021 21:35
-
-
Save brentxphillips/f623e2ade8d641cb6eafc88a84c6629f to your computer and use it in GitHub Desktop.
Prints string, letter-by-letter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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