0

How do you print inputs

2nd Jul 2025, 3:38 PM
Kirin Hale
Kirin Hale - avatar
2 ответов
+ 4
Hi Kirin Hale , It would help if you used tags properly (see attached info), so we know which language you would like. I checked your profile and saw that you've started python, so I'll go with that. A basic example to print an input is to store the input in a variable and then print the variable. message = input() print(message) Continue with your python courses and feel free to check the code playground. Lots of resources to help! If you have a specific code which you need help with, please attach it. https://sololearn.com/compiler-playground/W3uiji9X28C1/?ref=app https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app https://sololearn.com/compiler-playground/Wek0V1MyIR2r/?ref=app
2nd Jul 2025, 3:47 PM
Ausgrindtube
Ausgrindtube - avatar
+ 2
with Ausgrindtube ; also if you want to print (int) message = input("Enter a message: ") print(message) print(type(message)) #string # take input num = input("Enter a number: ") # convert numeric string to integer num= int(num) #simplify num= int(input("Enter a number: ")) print(num) print(type(num)) # integer also # user input and convert it to float f = float(input("Enter a number: ")) print(type(f)) # float
2nd Jul 2025, 5:10 PM
**🇦🇪|🇦🇪**
**🇦🇪|🇦🇪** - avatar