What is the output of print(myTuple[1:3]) if myTuple=('abcd',786,2.23)? - correct answer ✔✔(786, 2.23)
What is the output of print(myTuple[0]) if myTuple = ('abcd',786,2.23)? - correct answer ✔✔abcd
Which function obtains all the keys from a dictionary? - correct answer ✔✔keys()
Which function obtains all the values from a dictionary? - correct answer ✔✔values()
Which function converts a string to an int? - correct answer ✔✔int()
Which function converts a string to a float? - correct answer ✔✔float()
Which function converts a string to a tuple ? - correct answer ✔✔tuple()
Which function converts a string to a list? - correct answer ✔✔list()
Which function converts a sequence of tuples to dictionary? - correct answer ✔✔dict()
Which function converts an integer to a character? - correct answer ✔✔chr()
Which function converts an integer to an unicode character ? - correct answer ✔✔unichr()
Which function converts a single character to its integer value? - correct answer ✔✔ord(x)
, Which function converts an integer to hexadecimal string ? - correct answer ✔✔hex()
Which operator performs exponential power calculation on operands? - correct answer ✔✔**
Which operator performs the division where the result an integer? - correct answer ✔✔//
Which operator evaluates True when operands refer to the same object? - correct answer ✔✔==
Which operator evaluates True if it does not find a variable sequence? - correct answer ✔✔not in
Which statement stops and transfers to the statement after the loop? - correct answer ✔✔break
Which statement skips the loop & retests prior to reiterating? - correct answer ✔✔continue
Which statement is used when when you do not want any code to execute? - correct answer ✔✔pass
Which function returns a random item from a list, tuple, or string? - correct answer ✔✔choice()
Which function returns a randomly selected element from range? - correct answer ✔✔randrange()
Which function returns a random float between 0 and 1? - correct answer ✔✔random.uniform()
Which function sets the starting value in generating random numbers? - correct answer ✔✔seed()
Which function randomizes the items of a list in place? - correct answer ✔✔random
Which function capitalizes first letter of string? - correct answer ✔✔string.capitalize(0)
Which function checks in a string that all characters are alphanumeric? - correct answer ✔✔isalnum
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Sakayobako30. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $17.99. You're not tied to anything after your purchase.