Input - Output in Python: Department of Mechanical Engineering
Input - Output in Python: Department of Mechanical Engineering
IN PYTHON
D E PA R T M E N T O F M E C H A N I C A L E N G I N E E R I N G
input(): The input() function first takes the input from the user
or list.
renamed to input().
D E PA R T M E N T O F M E C H A N I C A L E N G I N E E R I N G
• eval() : Function takes a string and evaluate the result
OUTPUT OPERATION
D E PA R T M E N T O F M E C H A N I C A L E N G I N E E R I N G
FILES IN PYTHON
data permanently.
files:
open a file
read file
write file
close file
D E PA R T M E N T O F M E C H A N I C A L E N G I N E E R I N G