CSC 498 Lecture Notes - Lecture 2: Numpy, Cpython, Memory Address

17 views7 pages

Document Summary

Review int (integer): python integer can represent any integer number as long as it can be stored in computer memory. Float: a float number is a sequence of binary digits (bits) 01010101010101 float numbers can only represent a subset of real numbers. If a number is too large in magnitude, it will be represented by +inf or -inf. String: a string is a sequence of characters: "this is a string", or "this is a string" Spyder is an ide with an editor window (for writing multiple lines of code) and console window (to interact with python interpreter) int64 is another integer type in python (package numpy) Input input(): function to get a string from the user via the keyboard. It gets input from keyboard: when this function is used/called, the program stops and waits for the user to type something, after user presses enter, input made to a string and passed to the variable.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents