Computer Science, asked by simrin04, 5 months ago

What will the result given by the following ?
(a) type (6+3) (b) type (6-3) (c) type (6*3) (d) type (6/3) (e) type (6//3)

Answers

Answered by anindyaadhikari13
3

Question:-

  • Write the output of the following python code.

Solution:-

Question 1:-

type(6+3)

=type(9)

9 is an integer. So, output:-

<class 'int'>

Question 2:-

type(6-3)

=type(3)

3 is an integer. So, output:-

<class 'int'>

Question 3:-

type(6*3)

=type(18)

18 is also an integer. So, output:-

<class 'int'>

Question 4:-

type(6/3)

=type(2.0)

2.0 is a float value. So, output:-

<class 'float'>

Question 5:-

type(6//3)

=type(2)

2 is an integer. So, output:-

<class 'int'>

I have posted an attachment for verification.

Attachments:
Answered by rangadeepa649
0

Answer:

2exfwyvwid2fsc2ksogsck2sc2vslq sh2s 2el 2sv

Similar questions