Silly Python3 Strings
Go to solution
Solved by Mr_KoKa,
No, input functions will print what they prompt first, before print function ends, when you run your print function with input function as argument, it will print only after input function returns so this is why you have your prompts printed before print function output.
More or less, print has to have all arguments available to print them, and input has to print to prompt for input. So you would kllike to have data before you ask for them. Your two line attempts is the best you can get.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now