- How Do You Raise "e" to a power?
- math.exp(number value)
- What function represents pi in python?
- math.pi
- How do you find the absolute value of a number?
- abs(number value)
- When does None occur?
- When you print an undefined variable
- What Function Finds Distance?
- distance(number value, number value, number value, number value)
- What Function Finds a Squareroot?
- math.sqrt(numbervalue)
- What displays the value of a function's calculation?
- return variable name
- How do you check to see if a number can be evenly divided by another?
- number % number
- If the solution is equal to zero
- return bool (0)
- Will Give You False
- return bool (any non-zero number)
- Will Give You True
- return bool("string")
- Will Give You True
- return bool("")
- Will Give You False
- If you place not in front of a boolean function, whenever it prints true or false, it is printing the opposite of what it actually is
- Be careful using float numbers, they are not exact, they are approximate
Showing posts with label September 26 2016. Show all posts
Showing posts with label September 26 2016. Show all posts
Monday, September 26, 2016
Programming In Class Notes
History Notes 9/26/16
- Persian Empire
- First long lasting world empire
- Territory
- Divided the area into satraps (provinces)
- Leaders
- Satraps were lead by governors known as satrapies
- Mauryan Empire
- This empire was in India, and compared to the Persian empire, was rather short lived
- Thanks to the Indian Religions Practiced, the Empire Had What?
- A strong cultural unity
- Chandragupta reigned from 320 to 298 BCE
- He was a freedom fighter against Alexander the Great
- He took power over part of Northern India when Alexander the Great died
- He practiced Jainism
- Megasthenes
- Wrote the most about the Mauryan Empire
- He was a Greek diplomat, who was sent by Seleucus who was the emperor of one third of Alexander's empire, who made trade deals with Chandragupta.
- They had a lot of trading of:
- Spices
- Bronze
- Cotton (Big Seller)
- Trade and government were aided by the grand trunk road
- Ruled by diplomacy, by having territories pay taxes.
- Kautilya was one of Chandragupta's best advisers
- Is given credit for writing the Treaty on Polity
- It seems that other people were involved in its creation
- Was divided into four provinces
- This empire was far more beaurecratic than Persia, this was seen by how they had:
- Their own department of timber
- Treaty on Polity
- What do All Indian Religions Share?
- Dharma
- Samsara
- Karma
To-Do September 26 2016
Lab 5.1
- 11.8 9/29/16
Write the Lego Assignment
Subscribe to:
Posts (Atom)