Python Classroom image

Ankit  Rawat / Professional / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16|Last
Lessons:-INTRODUCTION

1.9. THE IDLE EDITOR AND EXECUTION 17
run from a file like the first sample program, Python does not display expressions this way. If you want your
program to display something, you can give explicit instructions with the print function. Try in the Shell:
x = 3
y = 5
print(’The sum of’, x, ’plus’, y, ’is’, x+y)
The print function will prints as strings everything in a comma-separated sequence of expressions, and it
will separate the results with single blanks by default. Note that you can mix types: anything that is not
already a string is automatically converted to its string representation.
You can also use it with no parameters:
print()
to just advance to the next line.

 
 
 

Ankit  Rawat

Skills    Python

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)