0
How to input a string and number in python and then print those two??
3 ответов
+ 4
Hi Phantom,
as i understand you, you need two inputs. Lets say one is string, call it name, another is integer, call it number
Then;
name = input() # this one takes string
number = int(input()) # takes integer
Now you have your variables, you can use them as you wish.
+ 7
input() function is used to take string inputs. You can convert it to integer using int().
+ 1
Thank you so much for ur detailed explanation