1. Engineering
  2. Computer Science
  3. help please...

Question: help please...

Question details
Help please
Help hw1py-AIST2120-Visual Studio Code 10 # 1, convert the following variable to a float and print() the result. 11 var one -18e 13 # 2a. convert the following variable to hexadecimal and print the result. 15 var_two a 296 16 17 18 # 2b. Convert the following variable to an integer and print the result 19 var two b exef 22 3. Convert the following variables to an integer and print the result 23 var_three_a - 5.969 24 var three b 3.08101 27 28 # 4. Using a slice operation, print only the fourth word in the following string (no spaces var_four this is only kind of a test 31 # S. Using a slice operation, print every other character in the following 32 # string starting with the first character. 33 varfive abcdefghijklmnopgrstumoyz 36 # 6. create a tuple of five elements of different data types, assign it to a 37 variable and print the tuple. 48 # 7. Use a built-in string method to replace. all of the z characters 41 with a string of 5 in the following variable and pring the result. 42 var_seven fizz buzz
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution