You are on page 1of 1

.

nswer the Following:

1. Write the output of the given statements


a. str heading:"Greenfann"
print(str headingI t : :])

b str name:"Hello Cyber"


print(str_name[ :4])

c. nltm:4
num_sqrFnum+*2

2. Identity the errors and write the correct syntax lbr the following

a. s[ name"Elon Musk"

st nurn:300
print( st_n am e*st_num)

b. numl : 1.5

num2:6.3
sLlnt: num * num2
print("The sum of the numbers is sum ,sum)

numl : the number:')


:,.: ':: ' ; .r:'

i .,., ' :"'j

:! r:

You might also like