TECH 64600 Final: REVIEW QUESTION 1

100 views14 pages
Department
Professor

Document Summary

What is the result of the following operation in python: In python, what is the result of the following operation "1"+"2" Given myvar = "hello", how would you convert myvar into uppercase? len(myvar) myvar. find("hello") myvar. upper() myvar. sum() What is the syntax to obtain the first element of the tuple: After applying the following method,l. append(["a","b"]), the following list will only be one element longer. 0, you can only have one unique element in a set. 100 depends on the number of elements in your set. , what is the result of the following operation: dict["d"] Question 5 (4, 4, 4) error (1 point possible) There is no zeros in lists (1 point possible) What is the output of the following lines of code: x=1 if(x!=1): print("hello") else: print("hi") print("mike") Consider the function delta, when will the function return a value of 1 def delta(x): if x==0: else: y=1; y=0; return(y)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents