python noob here. I'm sure this is an easy question.. Is it possible to get numerical data collected from multiple user input questions into a single variable? For example, if I wanted to ask a user three questions:
int(input("What is your yearly income?"))
int(input("What is your partner's yearly income?"))
int(input("Enter any additional income"))
Can you store all of that data collected directly into a single variable named total_income. What I would like is to be able to get a sum total into a single variable.
input('bliblabla')to tell the user to enter all values in the line, separated by space, don't change the suggestedsplit()method. The solution provided by @deepansh-sachdeva is more ergonomic for you and the user...input("Enter your yearly income, your partner income and any additional income separated by a space").split()