Question: Write code to complete the following tasks: Create two variables called x and y with values 3 0 and 6 , respectively. Perform a division

Write code to complete the following tasks:
Create two variables called x and y with values 30 and 6, respectively.
Perform a division of x by y and assign the result to a variable called div.
Perform a floor division of x by y and assign the result to a variable called f_div.
Print the values of div and f_div as well as their data types.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!