Jump to content

Twinkle and Sprinkle: Difference between revisions

(new task)
 
Line 10:
 
So I went ahead and wrote a Python program that, instead of crunching numbers, depended on the human brain to gain insight enough to hard code in the correct numbers. Perhaps your program will contain different numbers.
 
=={{header|Phix}}==
{{trans|Python}}
See Python entry for explanatory comments (which have been omitted for clarity)
<!--<syntaxhighlight lang="phix">(phixonline)-->
<span style="color: #008080;">with</span> <span style="color: #008080;">javascript_semantics</span>
<span style="color: #008080;">constant</span> <span style="color: #000000;">txt</span> <span style="color: #0000FF;">=</span> <span style="color: #008000;">"""
Heart attack rates, according to logical inference
Women Men Overall
Twinkle (predicted) 0 1 0.5
Sprinkle (observed) 0 1 0.5
Heart attack rates, according to the incurious
Women Men Overall
Twinkle (predicted) ??? ??? ???
Sprinkle (observed) 0 1 0.5
Heart attack rates, according to Dr. Godzilla
Women Men Overall
Twinkle (predicted) 0 0 0
Sprinkle (observed) 0 1 0.5
Heart attack rates, according to observers
Women Men Overall
Twinkle (observed) 0 1 0.5
Sprinkle (observed) 0 1 0.5
Output of an AI of a "Godzilla's theorem" adherent
However strange it may seem, heart attacks in Twinkle and
Sprinkle are now scientifically proven to involve some kind
of violation of causal reality.
Output of an AI of a very intellectual person
Adherents to "Godzilla's theorem" are society's greatest
geniuses, so what they say is true.
"""</span>
<span style="color: #7060A8;">puts</span><span style="color: #0000FF;">(</span><span style="color: #000000;">1</span><span style="color: #0000FF;">,</span><span style="color: #000000;">txt</span><span style="color: #0000FF;">)</span>
<!--</syntaxhighlight>-->
Output same as Python
 
=={{header|Python}}==
7,806

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.