Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
tcl to python list test
proc toPythonList {value} { if {[string is integer -strict $value]} { return $value } set result "\[" foreach item $value { append result [toPythonList $item] ", " } append result "\]" return $result } puts [toPythonList { 12 {100} {{12 34}} {56 {78 {11 12 11} 10}}}]
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
NISP - Planning ID/Test ID
Perfect neg float bin multiplier
Trail
Perfect binary mul and even odd assign 2
binds
Perfect decimal to binary add
r
Working for neg
Perfect decimal to binary add
Perfect bin mul eo float
stackse - search stackoverflow differently
Please log in to post a comment.