20220429, 14:11  #12 
Jan 2017
149 Posts 
Guess I'm too used to using the Python shell only through IPython. In IPython, a line with semicolons will only show the return value from the last statement (and the semicolonusing solutions here do not work), whereas plain Python shell will handle semicolonseparated statements as basically independent input lines  each will produce independent output, but '_' for example will refer to the return value of the last only.
BTW if anyone is using Python through its plain shell, I recommend trying IPython. I think things like multiline block support are especially useful  if you write a loop with multiple lines, it's in the command history as one object, and you can easily repeat it with one part edited (instead of recalling each single line individually as the default shell would require). 
20220429, 15:03  #13 
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2·3·1,093 Posts 

20220429, 20:44  #14 
Dec 2016
2^{3}·3·5 Posts 
OK, so you were looking for something like
1e666+1e666j;_*_;_*_;1e6661e666j;_+1e666j;1e666+1e666j;_1e666j;1e6661e666j;_+1e666 Or, to make it even shorter and less readable: j=1e666;e=3E333J;e+j;_*_;_*_;je;_+e;ej;_e;je;_+j 
20220503, 01:24  #15  
Sep 2017
7×19 Posts 
Quote:
(inf+infj) (nan+infj) (nan+nanj) (infinfj) (inf+nanj) (inf+infj) (inf+nanj) (infinfj) (naninfj) 

20220503, 01:26  #16 
If I May
"Chris Halsall"
Sep 2002
Barbados
2×11×13×37 Posts 
To share something fellow geeks might enjoy... The Worst Programming Language Ever  Mark Rendle  NDC Oslo 2021

20220503, 03:57  #17 
Undefined
"The unspeakable one"
Jun 2006
My evil lair
6558_{10} Posts 
A shorter version:
i=1e666;k=1e666j;i+k;ik;k*1j;i+k;ik;k*1j;i+i*1j;ii*1j;ik*1j 
20220503, 14:42  #18  
Dec 2016
1111000_{2} Posts 
Quote:
Quote:


20220503, 15:03  #19 
Apr 2010
2^{2}·3·19 Posts 
If the order doesn't matter this is shorter:
a=666e666;b=666e666j;a+b;_;_+a;_;ab;_;_b;_;_a And it should be obvious how to strip 4 more charakters. Last fiddled with by Gimarel on 20220503 at 15:12 Reason: 2 charackters less 
20220503, 16:31  #20 
Undefined
"The unspeakable one"
Jun 2006
My evil lair
2·3·1,093 Posts 
The order doesn't matter.
"... should look like this." isn't the same as "... shall be this." IMO. IIUC "like" means similar, not exact. At least in this context. I know there are other meanings of "like", but most of those would just make the sentence look weird. 
20220504, 06:29  #21 
Sep 2017
85_{16} Posts 
Sorry, my bad. I took it literally including the order of the output.

20220514, 21:04  #22 
May 2022
1 Posts 
my solution:
i=0+9e+999j;r=9e+999;r+i;ri;r+ii;r+i;ri;r+ii;rr+i;rri;rr+ii it's a cool problem for a codegolf, I wonder what is the shortest possible solution 
Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Complexity of Chinese Remainder Theorem  carpetpool  Miscellaneous Math  4  20170209 19:26 
What is the time complexity of base conversion?  Mr. P1  Computer Science & Computational Number Theory  5  20130402 15:47 
Complexity analysis of 3 tests  kurtulmehtap  Math  10  20130320 14:15 
Complexity of LLT  T.Rex  Math  9  20070529 21:15 
complexity of Pepin's test  ixfd64  Math  14  20051201 22:50 