Question: What is the output from the following code? #input sWord 1 = Earth sWord 2 = 'Wind' sWord 3 = 'Fire' #processing myTotal = sWord

What is the output from the following code?
#input
sWord1="Earth"
sWord2='Wind'
sWord3='Fire'
#processing
myTotal = sWord1+','+sWord2+' and '+sWord3
#output
print('The output is : ',myTotal)
a.
Syntax error
b.
The output is : Earth,WindandFire
c.
The output is : earth,windandfire
d.
The output is : Earth, Wind and Fire

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!