Question: In Python pls 1a) Write a line of code to get an int from the user and assign it to variable x. 1b) Print the

In Python pls

1a) Write a line of code to get an int from the user and assign it to variable x.

1b) Print the square root of the user's number, rounded to two decimal places.

2) Given that var1 = "python":

2a) Write a line of code to print the length of var1.

2b) Write a line of code to assign to variable x the letters "th" from var1 by slicing.

2c) Write a line of code to assign to variable y the letter "h" from var1 by using it's index.

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!