James Hancock
asked on
Why are Python printf examples fiction?
Hi
All the Python learning pages say that printf'ing must be done:
here
for x in range(0, 3):
print "We're on time %d" % (x)
But, in pyCharm, I have to use brackets:
print("age = ",24)
for x in range(0,5) :
print(x)
print("squared=",x*x,'_')
Why does pycharm require this break from examples?
It will seem lame to try and explain that to a student.
Thanks
All the Python learning pages say that printf'ing must be done:
here
for x in range(0, 3):
print "We're on time %d" % (x)
But, in pyCharm, I have to use brackets:
print("age = ",24)
for x in range(0,5) :
print(x)
print("squared=",x*x,'_')
Why does pycharm require this break from examples?
It will seem lame to try and explain that to a student.
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.
If I start teaching local kids to do coding, is Pycharm the best way? (obviously is)
What are professional python projects done in?
Just curious
If I start teaching local kids to do coding, is Pycharm the best way? (obviously is)
What are professional python projects done in?
Just curious
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
in .py files compiled in a console, parentheses are also needed?
Then why do the books exclude parentheses?
Thanks