+ 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

27th Feb 2020, 6:57 PM
Twinkal meshram
Twinkal meshram - avatar
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.
28th Feb 2020, 1:48 PM
Sonic
Sonic - avatar
+ 4
()
27th Feb 2020, 7:01 PM
Oma Falk
Oma Falk - avatar
+ 4
HonFu In this point ruby -as dialect of Python - is more consequent.
27th Feb 2020, 7:29 PM
Oma Falk
Oma Falk - avatar
+ 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....😂
29th Feb 2020, 4:43 AM
Faizan Qazi
Faizan Qazi - avatar
+ 3
Yes it is real question
27th Feb 2020, 7:06 PM
Twinkal meshram
Twinkal meshram - avatar
+ 3
Actually if we use any bracket it's meaning will be changed hence only () bracket used getting...?
27th Feb 2020, 7:07 PM
Twinkal meshram
Twinkal meshram - avatar
+ 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.
27th Feb 2020, 7:20 PM
Oma Falk
Oma Falk - avatar
+ 2
so it was no real question?
27th Feb 2020, 7:04 PM
Oma Falk
Oma Falk - avatar
+ 2
Didn't hate parenthesis as much as the inventor of Ruby, though, hm, Oma Falk? 😁
27th Feb 2020, 7:22 PM
HonFu
HonFu - avatar
+ 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...
27th Feb 2020, 7:56 PM
Edward
Edward - avatar
+ 2
Edward but if you are good in it then it's ok no matter of translation Google translater is there for us
28th Feb 2020, 4:22 AM
Twinkal meshram
Twinkal meshram - avatar
+ 1
Right
27th Feb 2020, 7:01 PM
Twinkal meshram
Twinkal meshram - avatar
+ 1
Sonic, I think in Python 2 print was a keyword instead of a function. (Is this a history lesson now? 🧐😅)
28th Feb 2020, 1:51 PM
HonFu
HonFu - avatar
+ 1
HonFu 'in python 2 print was a keyword' - and it was better. I also hate that I have to write exit() to close the console 😕
4th Mar 2020, 8:36 PM
Selin Genkur
+ 1
Faizan Qazi thanks for clearing that. so just in German parentheses can mean anything.
5th Mar 2020, 4:39 AM
Edward
Edward - avatar