kholech
|
  |
| Joined: 18 Dec 2009 |
| Total Posts: 1135 |
|
|
| 13 Jan 2013 01:23 PM |
print("Hello")
or
print'Hello' |
|
|
| Report Abuse |
|
|
Monkey727
|
  |
| Joined: 12 Jan 2009 |
| Total Posts: 969 |
|
|
| 13 Jan 2013 01:26 PM |
| Either one is fine, They are both equal though using () is preferred since print is a function and all functions should have parentheses. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2013 01:38 PM |
It's just a personal preference.
You can do: print("A") print'A' print"A" print[[A]]
I feel like I'm missing one or two... |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2013 01:38 PM |
print[======[hi]======]
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::]- |
|
|
| Report Abuse |
|
|
jelly134
|
  |
| Joined: 25 Aug 2008 |
| Total Posts: 1137 |
|
| |
|
swmaniac
|
  |
| Joined: 28 Jun 2008 |
| Total Posts: 15773 |
|
|
| 13 Jan 2013 02:39 PM |
| I would say print("Hello") is better for consistency's sake and ease of reading code. |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2013 02:43 PM |
| personally i like to call functions without parentheses if possible. i think it looks cool :D |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
|
| 13 Jan 2013 02:45 PM |
| First one is better. But if you're comparing the performance of it then it doesn't matter |
|
|
| Report Abuse |
|
|