Lab Manual
Python Programming
Objectives This manual has been designed to provide : Practical exercises for hands on practice Guidelines to complete the exercise Learning Outcome
Module 3
Exercise What will you do? • Store a floating-point value using float() class and print it's data type
Guidelines What should you do? 1. Open Open your Jupyter Notebook. 2. Create a new Python project. 3. In the project select ‘new’ and click on the Python file. 4. Give a relevant name for the file. 5. Type the following code in the editor: # store a floating-point value using float() class num = float(3.14) print(num) # 3.14 print(type(num)) # class 'float’ 6. Right-click the editor and select Run '[file-name]' from the context menu. 7. Press Ctrl+Shift+F10.
Learning Outcome You will be able to store a floating-point value using float() class and print it's data type.
Thank You!
Search
Read the Text Version
- 1 - 8
Pages: