100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Introduction to Programming in Python - C859/ WGU C859 Actual Exam Updated Latest Version $17.99   Add to cart

Exam (elaborations)

Introduction to Programming in Python - C859/ WGU C859 Actual Exam Updated Latest Version

 511 views  9 purchases
  • Course
  • Introduction to Programming in Python - C859/ WGU
  • Institution
  • Introduction To Programming In Python - C859/ WGU

Introduction to Programming in Python - C859/ WGU C859 Actual Exam Updated Latest Version

Preview 2 out of 6  pages

  • July 10, 2023
  • 6
  • 2022/2023
  • Exam (elaborations)
  • Questions & answers
  • Introduction to Programming in Python - C859/ WGU
  • Introduction to Programming in Python - C859/ WGU
avatar-seller
johnwachi22
Introduction to Programming in Python - C859 / WGU C859 Actual Exam Updated 2023 -2024 Latest Version 1. function displays variables or expression values print() 2. to keep the output of a subsequent print statement on the same line separated by a single space end=' ' 3. newline character. \n 4. what is put in, taken in, or operated on by any process or system. 5. to read in a string from the user and then convert that string to an integer for use in a calculation input() int(input()) 6. returns the type of an object type() 7. that gives the value of an object's identity id() 8. when reading the input to convert the input string into a float 9. The syntax for outputting the float myFloat with two digits after the decimal point is 10. Which of the following arguments completes print() to output two digits after the decimal point?print( .format(7.0 / 3.0)) float(input()) print('{:.2f}'.for - mat(myFloat)) '{:.2f}' 11. What is output by print('{:.1f}'.format(0.125))? 0.1 12. What is output by print('{:.3f}'.format(9.1357))? 9.136 13. The exponent operator is ** 14. Compound operator: addition += 15. Compound operator: Subtraction -= 16. Compound operator: Multiplication *= 17. Compound operato r: Division /= Introduction to Programming in Python - C859 / WGU C859 Actual Exam Updated 2023 -2024 Latest Version 18. Compound operator: Modulo %= 19. can be used to round down the result of a float - ing-point division to the closest whole number value. 20. evaluates the remainder of the division of two integer operands. Ex. 23 10 is 3 21. Executes the contents of a file containing Python code and makes the definitions from that file avail - able. 22. ensures that our file runs if we called it up by name and not if we included this file by importing it in some other file // % import if name == ' main ' 23. import built in math module import math 24. calling a math module function for sqrt function variable = math.sqrt(num) 25. you want to generate the help of the given math help(math) 26. built -in function can be used to find the length of a string 27. Write a statement that prints the length of the string variable first_name. 28. A programmer can access a character at a specific index by appending containing the index 29. Write an expression that accesses the first character of the string my_country. len() print(len(first_name)) [ ] my_country[0] 30. creates an empty list my_list = [ ] 31. Write a statement that creates a list called my_nums, containing the elements 5, 10, and 20. my_nums = [5, 10, 20]

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 johnwachi22. 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.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

81113 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
$17.99  9x  sold
  • (0)
  Add to cart