3.3. ShowEval Trace ModeΒΆ
eggs = ['dogs', 'cats', 'moose']
ham = ['elk', 'salmon']
eggs = eggs + ham
ham = ['elk', 'salmon']
eggs = eggs + ham
.. showeval:: showEval_2
:trace_mode: true
eggs = ['dogs', 'cats', 'moose']
ham = ['elk', 'salmon']
eggs = eggs + ham
~~~~
eggs = {β{eggs}}{β{['dogs', 'cats', 'moose']}} + ham
eggs = ['dogs', 'cats', 'moose'] + {β{ham}}{β{['elk', 'salmon']}}
eggs = {β{['dogs', 'cats', 'moose'] + ['elk', 'salmon']}}{β{['dogs', 'cats', 'moose', 'elk', 'salmon']}}
3.4. ShowEval Replace ModeΒΆ
eggs = ['dogs', 'cats', 'moose']
Before you keep reading...
Making great stuff takes time and $$. If you appreciate the book you are reading now and want to keep quality materials free for other students please consider a donation to Runestone Academy. We ask that you consider a $10 donation, but if you can give more thats great, if $10 is too much for your budget we would be happy with whatever you can afford as a show of support.
.. showeval:: showEval_1
:trace_mode: false
eggs = ['dogs', 'cats', 'moose']
~~~~
''.join({β{eggs}}{β{['dogs', 'cats', 'moose']}}).upper().join(eggs)
{β{''.join(['dogs', 'cats', 'moose'])}}{β{'dogscatsmoose'}}.upper().join(eggs)
{β{'dogscatsmoose'.upper()}}{β{'DOGSCATSMOOSE'}}.join(eggs)
'DOGSCATSMOOSE'.join({β{eggs}}{β{['dogs', 'cats', 'moose']}})
{ββ{'DOGSCATSMOOSE'.join(['dogs', 'cats', 'moose'])}}{β{'dogsDOGSCATSMOOSEcatsDOGSCATSMOOSEmoose'}}
You have attempted 1 of 4 activities on this page