Search results
Create the page "Python 3" on this wiki! See also the search results found.
- ...classes that focus on problem-solving with computer programming via the [[Python]] programming language. ...ine School/Intermediate Algebra | Intermediate Algebra]] (formerly Algebra 3) — [https://artofproblemsolving.com/school/course/catalog/intermediate-al8 KB (965 words) - 02:41, 17 September 2020
- ...ro (<math>0</math>), or the negatives of the natural numbers (<math>-1,-2,-3,\ldots</math>). If <math>a</math> and <math>b</math> are integers, then the ...math>2^{31}-1</math> for signed <math>32</math>-bit integers). Integers in Python can be of arbitrary size, theoretically limited only by computer memory.2 KB (296 words) - 14:04, 5 August 2022
- n-3&\mbox{if}\ n\ge 1000\ ...d <math>h</math> times. We find that <math> f(84) = f(f(89)) = f^2(89) = f^3(94) = \ldots f^{y}(1004)</math>. <math>1004 = 84 + 5(y - 1) \Longrightarrow4 KB (633 words) - 21:31, 6 October 2024
- ...place each month from December through March. These contests are generally 3-4 problems lasting 4-5 hours. Competitors may participate at any time over ...oints for the test case. Programs get 4 seconds per test case for Java and Python and 2 seconds for other languages.2 KB (297 words) - 00:41, 21 January 2023
- ...logical expressions. They are used primarily in conditional tests. In [[Python]] the test in the first line of an if statement or while loop must evaluate (5 in myList) and (myList.index(5) < 3)2 KB (316 words) - 11:06, 28 September 2024
- ...can be delimited by double or single quotes (<tt>'this is also a string in Python'</tt>). ...th the [[integer]] <tt>222</tt>. To convert between strings and numbers in Python use [[type conversion functions]].4 KB (622 words) - 00:24, 8 April 2011
- ...e. The only language that AoPS teaches (as of May 16, 2021) in a class is Python. ...ou are interested in learning the basics of Python, check out the Intro to Python class.14 KB (2,360 words) - 15:17, 25 September 2024
- This page is intended to serve as a brief, beginners reference to the [[Python]] programming language. In Python, there is no need to specify a type when storing information in a variable.28 KB (4,762 words) - 20:20, 12 June 2023
- *For the purposes of this class, numbers in [[Python]] are either [[integer]]s or [[floating point number]]s. Unlike humans, wh *Text in Python is stored in a [[string]], and is delimited by either single quotes (<tt>'t4 KB (569 words) - 21:05, 15 August 2020
- A '''function''' in [[Python]] is a block of code that performs a task. In programming terminology, fun ..., and by abstracting away implementation details (for example, you can use Python's built-in square root function without needing to know how it's implemente4 KB (683 words) - 23:20, 29 October 2012
- ...o write programs that behave differently when given different input. In [[Python]] we can do this with '''if-statements''', which will execute the block of ...ses with elif this way at most one of the cases will ever be executed, and Python will check them from top to bottom. Hence, in the above example if executi5 KB (787 words) - 12:28, 30 March 2011
- '''Lists''' in [[Python]] are used to store multiple objects in a single ordered set. Unlike [[tup ...he list in most other programming languages is the [[array]], but lists in Python are more flexible, similar to the Vector class in [[Java]] or [[C++]].3 KB (470 words) - 11:27, 9 September 2021
- ...generic term for an ordered set. There are several types of sequences in Python, the following three are the most important. ...enation'''. For example, <tt>[1,2,3]+[4,5]</tt> will evaluate to <tt>[1,2,3,4,5]</tt>.3 KB (426 words) - 18:39, 7 December 2024
- A '''Slice''' in [[Python]] is used to extract a subset of a [[sequence (Python)|sequence]]. Python will then return a new list containing <tt>myList[start], myList[start+incr2 KB (244 words) - 23:39, 6 April 2011
- The '''range function''' in [[Python]] generates a sequence of [[integer]]s. It's most frequently used in for-l Note that the sequence range returns is different from the other [[sequence (Python)|sequence types]]. It's much more efficient, especially for large ranges,3 KB (420 words) - 14:40, 10 April 2011
- ...module (Python)|module]]''' is used to generate pseudo-random numbers in [[Python]]. The following are functions in the random module, see the page on [[module (Python)|modules]] for directions on how to import them into your program.1 KB (187 words) - 11:55, 30 June 2020
- ...ally only need a few of them, so that would be very inefficient. Instead, Python organizes functions into '''modules''', which we can load as needed. y = random.uniform(3,4) # assigns to y a random float between 3 and 43 KB (490 words) - 15:30, 10 April 2011
- ====Part 3: Wordplay==== ...functions. This is a nice feature of Python that is only possible because Python supports [http://en.wikipedia.org/wiki/First_class_function first class fun795 bytes (115 words) - 15:40, 19 April 2011
- '''Tuples''' in [[Python]] are used to store multiple items in a single ordered set. However, unlik myTuple = (1+3, 2.7, 'Thursday')1 KB (196 words) - 16:18, 19 April 2011
- ====Part 3: Inheritance==== In Python, we can create subclasses by putting the superclass we want to extend in pa3 KB (502 words) - 18:18, 3 September 2011