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.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter15: Recursion
Section: Chapter Questions
Problem 6PE
icon
Related questions
Question

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.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Datatypes
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT