100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
WGU C859 Python Syntax $11.99   Add to cart

Exam (elaborations)

WGU C859 Python Syntax

 7 views  0 purchase
  • Course
  • Institution

WGU C859 Python Syntax

Preview 2 out of 5  pages

  • July 10, 2023
  • 5
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
avatar-seller
WGU C859 Python Syntax
var1, var2, var3 = 1, 2, 3 - ✔️ multiple variable assignment

12 - ✔️ integer

1.2 - ✔️ float

'twelve' - ✔️ string

"twelve" - ✔️ string

True or False - ✔️ Boolean value

type() - ✔️ determines type of an object (integer, boolean, etc)

int() - ✔️ converts to integer object

float() - ✔️ converts to float object

str() - ✔️ converts to string object

print() - ✔️ displays a message

+ - ✔️ addition (integer) or concatenation (string)

- - ✔️ subtraction

** - ✔️ power of

% - ✔️ modulus, remainder

/ - ✔️ division, always results in float

// - ✔️ division, always results in integer

= - ✔️ assignment operator

, += - ✔️ reassignment operator, adds

-= - ✔️ reassignment operator, subtracts

*= - ✔️ reassignment operator, multiples

/= - ✔️ reassignment operator, divides

< - ✔️ less than

> - ✔️ greater than

<= - ✔️ less than or equal to

>= - ✔️ greater than or equal to

== - ✔️ equal to

!= - ✔️ not equal to

len() - ✔️ returns length

title() - ✔️ capitalizes first letter of each word

islower() - ✔️ determines if the string consists of lowercase
characters

count() - ✔️ totals number of times an argument is found within a
predefined value

format() - ✔️ inserts variable data in a string

def - ✔️ keyword used to create functions

def myfunction(): - ✔️ syntax for function declaration

return - ✔️ defines output of a function

if age < 16: - ✔️ creates an if statement

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

Will I be stuck with a subscription?

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

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 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
$11.99
  • (0)
  Add to cart