0% found this document useful (0 votes)
192 views

If Else Programming Worksheet For Children

Worksheet for children to determine the output of simple if/else statements, using the Python programming language. Multiple choice answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
192 views

If Else Programming Worksheet For Children

Worksheet for children to determine the output of simple if/else statements, using the Python programming language. Multiple choice answers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Here is the code.

i f True :
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”

Here is the code.

i f 4==4:
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”

Here is the code.

i f 4==3:
print ( ” Hi ” )
else :
print ( ”Bye” )

What will the code above print?

”Hi” ”Bye”
Here is the code.

i f ” c a t ”==” c a t ” :
print ( ”Up” )
else :
print ( ”Down” )

What will the code above print?

”Up” ”Down”

Here is the code.

i f 4==1 + 1 :
print ( ”Cat” )
else :
print ( ”Dog” )

What will the code above print?

”Cat” ”Dog”

Here is the code.

i f True==F a l s e :
print ( 5 )
else :
print ( 4 )

What will the code above print?

5 4

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy