CSE 1010 Lecture 2: CSE 1010 - Lecture 2 - Introduction to Python

28 views2 pages
Verified Note

Document Summary

Cse 1010 - lecture 2 - introduction to python. Idle offers an interactive mode to get to know python and experiment. Tells you what the result of an expression is when you type it. >>> x = y-5 #on the left hand side there should only be a variable. Tells you the value of the expression entered in the command line. The terms expression" and value of" will be used a lot. Parenthesis () can be used for grouping. The operators +, -, *, / , work most like in other languages. # division always returns a floating point number. Numbers with a fractional part have type float. It is possible to use the operator ** to calculate powers. Messages that are intended to be displayed to the user. The information that the user enters into a program is also in the form of strings. >>> print( hello, world!") #this statement is a function call.

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