+ 1

Why print is inbuilt function ,not a method in python??

4th Aug 2018, 10:31 AM
Kalyan
Kalyan - avatar
5 Respuestas
+ 3
Complete your python course and then you can get your certificate.
5th Aug 2018, 2:11 AM
Maninder $ingh
Maninder $ingh - avatar
+ 2
print was a statement in Python because it was a statement in ABC, the main inspiration for Python (although it was called WRITE there). That in turn probably had a statement instead of a function as it was a teaching language and as such inspired by basic. Python on the other hand, turned out to be more than a teaching language (although it's good for that too). However, nowadays print is a function. Yes, in Python 2 as well, you can do from __future__ import print_function and you are all set. Works since Python 2.6.
4th Aug 2018, 11:26 AM
Maninder $ingh
Maninder $ingh - avatar
+ 1
thank you. have you done any certification in python?
4th Aug 2018, 1:07 PM
Kalyan
Kalyan - avatar
+ 1
can any one help about python certification
4th Aug 2018, 1:08 PM
Kalyan
Kalyan - avatar
0
lol
5th Aug 2018, 2:49 AM
Kalyan
Kalyan - avatar