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
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
0
Answer:
2exfwyvwid2fsc2ksogsck2sc2vslq sh2s 2el 2sv
Similar questions
Social Sciences,
2 months ago
Math,
5 months ago
Chemistry,
5 months ago
Math,
10 months ago
English,
10 months ago