MIS 304 Chapter Notes - Chapter 2: Tab Key, Decimal Mark, Scientific Notation

40 views2 pages

Document Summary

Mis 304 formatting input guidelines 2. 3: numeric data types and literals, numeric literal = number written into a program"s code, float = numeric literal with decimal point, 2. 75. Int = numeric literal without decimal point: 43, built in function type(number) = tells you what numeric data type the number is, str data type. Input: name_1 = alice , name_2 = john , print (name_1, name_2, output, alice john, variables can change types when reassigned, acceptable: initially, x = 99 but later x= take me home", escape characters. \n = causes output to go to next line. = causes output to skip to next horizontal tab position. \" = causes single quote to be printed. " = causes double quotes to be printed. \ = causes backslash to be printed: + operator, print( a + b , a b, print( a" + \ C": a b c, formatting numbers, format function, format (1234. 56789, . 2f")

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents