Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Week 1/Python Datatypes and Type Conversion.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@
- C. convertor()
- D. split()

*Answer :-*
*Answer :-D. split() *

*2. Which of the following is not the data type in python?*
- A. tuple
- B. class
- C. set
- D. list

*Answer :-*
*Answer :-B. class*

*3. Which of the following is the example of the type conversion?*
- A. str(2)
- B. int(2)
- C. str(list)
- D. All of the above

*Answer :-*
*Answer :-D. All of the above*

*4. Which of the following can convert the string to float number?*
- A.str(float,x)
- B. float(str,int)
- C. int(float(str))
- D. float(str)

*Answer :-*
*Answer :-D. float(str) *

*5. If we change one data type to another, then it is called?*
- A. Type Conversion
- B. Type Casting
- C. Both of the Above
- D. None of the Above

*Answer :-*
*Answer :-C. Both of the Above*