educative.io

Parentheses for print function

On the educative website, the print function does not use parentheses whereas all Python IDE’s or interpreters use parentheses in which if you don’t use, it gives syntax error.

Why Eductive does not use parentheses in print function?


Course: Full Speed Python - Learn Interactively
Lesson: Iteration & Loops - Full Speed Python

Hi Fatih_Yildiz
Actually The Full Speed Python course is our old course where Python2.7 version was used instead of the new one. That’s why you’ll see some print statements (without parenthesis that was included in Python2) instead of print function. Now we’re using the updated version of Python in our new courses.

Thank you for your reply…
One more question:
str(bool(1) + float(10)/float(2)) here, str() does not convert to string… where as str() function normally converts all numeric into string…?


Course: Full Speed Python - Learn Interactively
Lesson: Dictionaries - Full Speed Python