Input and Output Statements in Python with Practical Explanation | Python Programming

Опубликовано: 28 Сентябрь 2024
на канале: SB Tech Tuts
3,345
55

input(): It is a built-in function used to read the input from the console by using the standard input device(keyword).
Syntax: variable-name = input(“promt”)
promt is a string that is displayed on the string at the time of taking input.
Ex: age = input(“Enter your present age”)
Note: By default input() function takes the users input is a string. so, it take the input in the form of int, you need to use int() along with input function.
Ex: age=int(input(“Enter your present age”))

print(): It is a built-in function used to print the output on to standard output device on console.
Syntax:
print(“String”)
print(variable)
print(“String”,variables)

Subscribe my channel : www.youtube/SBTechTuts
#IOStatements
#PythonProgramming
#Pythoninputstatement
#Pythonoutputstatement

Input and Output Statements in Python with Practical Explanation | Python Programming
python
python programming
python tutorial
learn python
input and output statements in python
python input statement
python output statement
in telugu
sudhakar bogam
sb tech tuts
input
output
portable