- 3
"Fill in the blanks to answer "Welcome"
How the flying fish did we go from explaining not/else and or to filling in the blank for welclme? is it me or is this confusing and I have no clue what the answer would be...it's the 3rd question on Boolean Logic. Many Thanks, ~ Alexander
10 odpowiedzi
+ 2
Fill in the blanks to take a name as input and output a Welcome message, containing the input?
name =
("Welcome, "+
)
0
mad ting
0
what is the answer
0
hi
0
age =15
money = 500
if age > 18 or money > 100:
print("Welcome")
- 1
Do you actually mean the second question in Boolean logic? It's just an example code and you have to make it work by filling the gaps. It's nothing deep. The first gap is "or" cause if it was "and", it wouldn't meet the conditions needed to print "welcome". The second gap is obviously "print", cause how else will you print "welcome"? :)
The reason you have to enter "print" is to help you memorise the function even if it's from a previous lesson. Since it confused you, clearly it's a good question.
- 1
- 1
- 1
The answer is welcome & )
- 8
Fill in the blanks to take a name as input and output a Welcome message, containing the input?
name =
("Welcome, "+
)