TAMU ENGR 102 (python coding) questions with Complete
Solutions |100% Pass
x += c - x = x + c
a -= 3 - a = a - 3
x *= 4 - x = x * 4
y /= 3 - y = y / 3
what are some different types of variables? - Integers, Floating-Point, Strings, Booleans
what is an integer? - whole numbers, no decimals/...
TAMU ENGR 102 (python coding) questions with Complete Solutions |100% Pass x += c - ✔✔x = x + c a -= 3 - ✔✔a = a - 3 x *= 4 - ✔✔x = x * 4 y /= 3 - ✔✔y = y / 3 what are some different types of variables? - ✔✔Integers, Floating -Point, Strings, Booleans what is an integer? - ✔✔whole numbers, no decimals/fractions what are floating -point numbers? - ✔✔numbers with a decimal point what is boolean? - ✔✔single value either true or false what are strings? - ✔✔way of describing text (you can use either single quotes or double quotes) float(3) - ✔✔value becomes 3.0 int(4.9) - ✔✔has the value 4 str(10*1.0) - ✔✔has the value '10.0' what is the boolean value of true/false? - ✔✔true is assumed to have the value 1 false is assumed to have the value 0 x = 3 y = 4 print(str(x) + ':' + str(y)) - ✔✔3:4 how to ask the user for input? - ✔✔x = float(input()) == - ✔✔equal to != - ✔✔inequali ty a = 10 b = 10
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 Collinss. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $11.49. You're not tied to anything after your purchase.