Question asked earlier revised: Python coding/programing question: Hello I am starting to learn dictionaries, and certain user defined functions. I'm trying to learn how to code a program where the code asks the user input for a string, for example 'Trees25'. How would I go about coding it so that the program seperates the string from the integer, and showing the user what he/she entered is the string and the integer. I managed to learn how to seperate the user input but I am having a hard time making the user input coming back seperated as a list of strings and integers in a continuos loop. Where the User input could be 'Trees25', or '35bigpunch25', or 'hugs25guy90'. But when I put my code into a loop, it confuses the loop with the user inpur string.
Question asked earlier revised:
Python coding/programing question: Hello I am starting to learn dictionaries, and certain user defined functions.
I'm trying to learn how to code a program where the code asks the user input for a string, for example 'Trees25'. How would I go about coding it so that the program seperates the string from the integer, and showing the user what he/she entered is the string and the integer.
I managed to learn how to seperate the user input but I am having a hard time making the user input coming back seperated as a list of strings and integers in a continuos loop. Where the User input could be 'Trees25', or '35bigpunch25', or 'hugs25guy90'. But when I put my code into a loop, it confuses the loop with the user inpur string.
Step by step
Solved in 2 steps