+2 votes
in Class 12 by kratos

Highlight the literals in the following program and also predict the output. Mention the types of variables in the program.

a=3

b='1'

c=a-2

d=a-c

e=“Kathy”

f=‘went to party.’

g=‘with Sathy’

print a,g,e,f,a,g,“,”,d,g,“,”,c,g,“and his”,e,f

1 Answer

+5 votes
by kratos
 
Best answer

a, c,d = integer

b, e,f,g = string

Output:

3 with Sathy Kathy, went to party. 3 with Sathy, 2 with Sathy , 1 with Sathy and his Kathy, went to party.

...