+ 3
Which parantgesis will be used for tuple and why?
Tuple type of datafunction which can not be change once it save.but easy to code
15 odpowiedzi
+ 6
puts "Hello World" in Ruby
vs.
print("Hello World") in Python 3.
I think Python 2 also accepted
print "Hello World" without parentheses right?
Note: not answer to original question.
+ 4
()
+ 4
( ) <PARENTHESES > is used for tuples .
Reason:
Because probably guido ran out of options as
[ ] < Brackets> is used for list and
{ } <Braces> for dictionary So....😂
+ 3
Yes it is real question
+ 3
Actually if we use any bracket it's meaning will be changed hence only () bracket used getting...?
+ 3
In Python yes.
I believe that Guido hated paranthesis.
For coding block he preferred indents.
But for types he liked it more than
var g:tuple
The general idea of Python was
lets make a short hack.
This is my personal opinion and might be wrong.
+ 2
so it was no real question?
+ 2
Didn't hate parenthesis as much as the inventor of Ruby, though, hm, Oma Falk? 😁
+ 2
that’s interesting how language’s can differ from each other. In English and German parenthesis might mean (), [] or {}. In Portuguese they are parênteses (), colchetes [], chaves {}. I’ve has a hard time trying to translate it...
+ 2
Edward but if you are good in it then it's ok no matter of translation Google translater is there for us
+ 1
Right
+ 1
Faizan Qazi thanks for clearing that. so just in German parentheses can mean anything.