Q. In each of the following Python expressions or statements, indicate what data type belongs in the indicated place by choosing one of these data types:
int, float, bool, str, list
| Expression | Correct Datatype | |
|---|---|---|
| (a) | s = ____ + 17 | |
| (b) | t = ____ + “pie” | |
| (c) | x [____] = ‘catfood’ | |
| (d) | ____ .sort() | |
| (e) | if ____ : |
Answer :-
| Expression | Correct Datatype | |
|---|---|---|
| (a) | s = ____ + 17 | int |
| (b) | t = ____ + “pie” | str |
| (c) | x [____] = ‘catfood’ | float |
| (d) | ____ .sort() | list |
| (e) | if ____ : | bool |
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )