100 days of Python

100 days of Python

Python Day 10 Convert Data Types

Challenge – Part 1

  1. Convert float to int
  2. Convert float to string
  3. When converting float to int specify how many decimals you want. Try 1 and 2 decimal places only.

Good Luck




Video Solution below.

 

Part 1

 

Challenge – Part 2

  1. Convert array into a dictionary
  2. Delete something from a dictionary
  3. Delete something in a dictionary that is not there but not crash IDLE

Part 2

 

Leave a Reply

Name *
Email *
Website