• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

C859 Python Syntax

Document preview thumbnail
Preview 1 out of 4 pages

C859 Python Syntax int() - answerconverts to integer object float() - answerconverts to float object str() - answerconverts to string object print() - answerdisplays a message + - answeraddition (integer) or concatenation (string) - - answersubtraction ** - answerpower of % - answermodulus, remainder / - answerdivision, always results in float // - answerdivision, always results in integer = - answerassignment operator += - answerreassignment operator, adds -= - answerreassignment operator, subtracts *= - answerreassignment operator, multiples /= - answerreassignment operator, divides - answerless than - answergreater than = - answerless than or equal to = - answergreater than or equal to

Content preview

©EXAM STUDY MATERIAL 8/9/2024 11:50 AM




C859 Python Syntax

int() - answer✔✔converts to integer object

float() - answer✔✔converts to float object

str() - answer✔✔converts to string object

print() - answer✔✔displays a message

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

- - answer✔✔subtraction

** - answer✔✔power of

% - answer✔✔modulus, remainder

/ - answer✔✔division, always results in float

// - answer✔✔division, always results in integer

= - answer✔✔assignment operator

+= - answer✔✔reassignment operator, adds

-= - answer✔✔reassignment operator, subtracts

*= - answer✔✔reassignment operator, multiples

/= - answer✔✔reassignment operator, divides

< - answer✔✔less than

> - answer✔✔greater than

<= - answer✔✔less than or equal to

>= - answer✔✔greater than or equal to

Document information

Uploaded on
August 17, 2024
Number of pages
4
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brightstars
3.4
(42)
Sold
275
Followers
7
Items
15765
Last sold
5 days ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions