100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
C949 WGU - Python section Questions with correct Answers $15.49   Add to cart

Exam (elaborations)

C949 WGU - Python section Questions with correct Answers

 3 views  0 purchase
  • Course
  • WGU C 949
  • Institution
  • WGU C 949

C949 WGU - Python section

Preview 2 out of 6  pages

  • August 10, 2024
  • 6
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • WGU C 949
  • WGU C 949
avatar-seller
Dreamer252
C949 WGU - Python section


Python interpreter - answeris a computer program that executes code written in the
Python programming language

interactive interpreter - answeris a program that allows the user to execute one line of
code at a time.

Is Python case sensitive? - answerYes. Python is a case sensitive language.

Phython Comments symbol - answer# this is a comment

print() - answerfunction displays variables or expression values.

print('Hello there')

end=' ' inside of print() - answerkeep the output of a subsequent print statement on the
same line separated by a single space

input() - answerwill read text entered by the user

int() function - answercan be used to convert that string to the integer 123

3 defining Properties of Python objects - answerValue
Type
Identity

Mutability - answerindicates whether the object's value is allowed to be changed.

id() - answergives the value of an object's identity.

floating-point number
and
floating-point literal - answerreal number, like 98.6
and
fractional part even if that fraction is 0, as in 1.0

scientific notation - answer1.0e-3.
The "e" stands for exponent

Overflow occurs when.... - answera value is too large to be stored in the memory

, ** is - answerexponent operator is **, as in x ** y

module - answera file containing Python code

string concatenation - answer"New" + "York"

container - answerconstruct used to group related values together and contains
references to other objects instead of data.

A list - answeris a container created by surrounding a sequence of variables or literals
with brackets [ ].

list; append() - answermethod is used to add new elements to a list.

List; Elements can be removed using the..... method - answerpop() or remove()

tuple - answerstores a collection of data, like a list, but is immutable - once created, the
tuple's elements cannot be changed.

named tuple - answerallows the programmer to define a new simple data type that
consists of named attributes

set - answeris an unordered collection of unique elements.

Elements are unordered: Elements in the set do not have a position or index.

Elements are unique: No elements in the set share the same value.

Set; add() - answerplaces a new element into the set if the set does not contain an
element with the provided value.

Set; remove() and pop() - answerremove an element from the set.

dictionary - answeris a Python container used to describe associative relationships. A
dictionary is represented by the dict object type.

created by using curly braces { } to surround the key:value pairs

dict; key - answeris a term that can be located in a dictionary, such as the word "cat" in
the English dictionary.

(A key can be any immutable type, such as a number, string, or tuple;)

dict; value - answerdescribes some data associated with a key, such as a definition.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

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

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

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 Dreamer252. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

79223 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart