Python 2.5x
Attention check the differences in these instructions involving print
1 my_name="eddie"
2 print "My name is %s" %(my_name) # This is OK
3 print "My name is %s" %(my_name) # This will give you an error
4 print "My name is %s", my_name # This is OK but the output is not equal to line 2 (power of comma!!!)
No comments:
Post a Comment
Your comment will be visible after approval.