Search results

Page title matches

  • ...ho use base 10, computers store numbers in binary (base 2), which may lead to very small rounding errors in floating point calculations. ...ython can understand. Later in the course we'll learn about more, and how to make our own datatypes.
    4 KB (569 words) - 21:05, 15 August 2020
  • A '''function''' in [[Python]] is a block of code that performs a task. In programming terminology, functions aren't used, they're '''called'''. If necessary, fu ...xample, you can use Python's built-in square root function without needing to know how it's implemented).
    4 KB (683 words) - 23:20, 29 October 2012
  • It's useful to be able to write programs that behave differently when given different input. In [[Py The condition in an if-statement must be an expression that evaluates to a [[boolean]] (that is, either true or false). For this we can use [[opera
    5 KB (787 words) - 12:28, 30 March 2011
  • ...that can be performed with it. '''Methods''' are functions that are tied to a particular object (or class of objects). ...at returns the index of the first occurrence of a substring. If we wanted to find the first occurrence of <tt>'hat'</tt> in a string <tt>myString</tt> w
    1 KB (171 words) - 15:13, 31 March 2011
  • *[[Introduction to Programming Week 5]] *[[Introduction to Programming Week 7]]
    363 bytes (49 words) - 23:26, 17 April 2011
  • One significant new technique we used was passing functions as parameters to other functions. This is a nice feature of Python that is only possible be *[[Introduction to Programming Week 6]]
    795 bytes (115 words) - 15:40, 19 April 2011
  • ...sed on a very popular and very powerful paradigm called '''object-oriented programming'''. As you might guess from the name, in object-oriented programming everything is an '''object'''. Each type of object is called a [[class (Co
    5 KB (755 words) - 22:04, 27 May 2013
  • This week we worked primarily on one large project: writing a program to play [[Pass the Pigs]]. See the transcript for details, this page will onl ...ing a large program, the most difficult and important part is deciding how to design the program - which [[class (Computer Science)|classes]] you need, a
    3 KB (502 words) - 18:18, 3 September 2011
  • ...might want to be able to add our object together. We can tell Python how to do this by implementing <tt>__add__</tt>. In our Die class this is straigh ...y extensible. We can, for example, realtively easily modify our Die class to support dice with different numbers of sides, and different numbers or labe
    2 KB (403 words) - 18:23, 5 May 2011
  • ...ng new this week is something called [[string formatting]]. The usual way to combine [[string]]s is with concatenation, but Python also provides string *[[Introduction to Programming Week 10]]
    565 bytes (79 words) - 18:15, 3 September 2011

Page text matches

  • ...them are free. When you discover more that do, please add that information to any appropriate places you find in the [[AoPSWiki]]. * [[MehtA+ Competitive Programming Bootcamp]] is a mini-bootcamp for grades 7-12 [https://mehtaplus.com/course
    14 KB (1,881 words) - 18:07, 22 October 2024
  • ...[[problem-solving]] disciplines, including [[informatics]], [[physics]], [[programming]], and others. ...are unique, and there is no way to measure that success. However, we try to record and celebrate [[AoPS Community Awards | achievements of AoPS student
    5 KB (658 words) - 09:03, 3 November 2024
  • Before adding any books to this page, please review the [[AoPSWiki:Linking books]] page. ...ww.amazon.com/exec/obidos/ASIN/0486240614/artofproblems-20 An Introduction to Information Theory] by J.R. Pierce.
    2 KB (251 words) - 23:45, 16 November 2023
  • * [[MehtA+ Competitive Programming Bootcamp]] is a mini-bootcamp for grades 7-12 [https://mehtaplus.com/course ...]] is a mini-bootcamp for grades 7-12 [https://mehtaplus.com/courses/intro-to-ethical-hacking/ Website]
    3 KB (415 words) - 19:52, 15 November 2024
  • ...that focus on problem-solving with computer programming via the [[Python]] programming language. * [[AoPS Online School/Introduction to Algebra A | Introduction to Algebra A]] (formerly Algebra 1) — [https://artofproblemsolving.com/schoo
    8 KB (965 words) - 02:41, 17 September 2020
  • The class of integers is the simplest class of numbers and is used to construct other classes like the [[rational number]]s and [[real number]]s. ...pically <math>32</math> bits), which limits their maximum value (typically to <math>2^{31}-1</math> for signed <math>32</math>-bit integers). Integers in
    2 KB (296 words) - 14:04, 5 August 2022
  • .../math>, with <math>n > 0</math>, we say that <math>a</math> is ''congruent to'' <math>b</math> ''modulo'' <math>n</math>, or <math>a \equiv b</math> (mod ...ing a wide range of number-theoretic problems, including finding solutions to [[Diophantine equation|Diophantine equations]], testing whether certain lar
    14 KB (2,317 words) - 18:01, 29 October 2021
  • ..., engineering, and entrepreneurship. Despite the name, the program is open to all participant. ...rrepresented minorities in the engineering profession by exposing students to engineering during their high school years.
    2 KB (272 words) - 18:01, 25 November 2022
  • ...the test in the first line of an if statement or while loop must evaluate to a boolean, and the reserved words <tt>True</tt> and <tt>False</tt> (note th ...perators. This means that if the value of the first operand is sufficient to determine the result, the second is never evaluated. That is, if the first
    2 KB (316 words) - 11:06, 28 September 2024
  • A '''string''' is a primitive [[datatype]] in most programming languages that represents an ordered sequence of [[character]]s. In most l ...string <tt>"222"</tt> has nothing to do with the [[integer]] <tt>222</tt>. To convert between strings and numbers in Python use [[type conversion functio
    4 KB (622 words) - 00:24, 8 April 2011
  • ...u through the process of getting started with programming using the Python programming language. The only language that AoPS teaches (as of May 16, 2021) in a cl ...f you 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
  • ...age is intended to serve as a brief, beginners reference to the [[Python]] programming language. ...pe when storing information in a variable. It is basic and straightforward to store information.
    28 KB (4,762 words) - 20:20, 12 June 2023
  • ...ho use base 10, computers store numbers in binary (base 2), which may lead to very small rounding errors in floating point calculations. ...ython can understand. Later in the course we'll learn about more, and how to make our own datatypes.
    4 KB (569 words) - 21:05, 15 August 2020
  • ...anguages, '''floating point numbers''' are the primitive [[datatype]] used to represent [[rational number]]s and [[real number]]s. Most of the standard ...s in [[binary]]. This is usually transparent to the programmer, but leads to several subtleties.
    2 KB (313 words) - 15:16, 31 July 2020
  • '''Type conversion functions''' are used in programming to convert data to primitive [[datatype]]s. ...nt'''(x)</tt> converts x into an [[integer]]. Floats will be rounded down to the nearest integer, and strings that don't represent a valid integer will
    987 bytes (147 words) - 19:10, 19 April 2011
  • In [[Python]], the '''print''' function prints things to the screen. In its simplest form it has the following syntax ...of each print statement Python will insert a new line, so subsequent calls to print will output on consecutive lines. These default behaviors can be over
    1 KB (200 words) - 18:58, 27 June 2011
  • ...called, it will print <tt>prompt</tt> to the screen, and wait for the user to type something and press enter. Then, the text the user entered is stored ...o convert it to an [[integer]] or [[floating point number]] it's necessary to use one of Python's [[type conversion functions]].
    666 bytes (106 words) - 14:39, 10 April 2011
  • In computer programming, operators are built-in functions similar to mathematical [[operation]]s. This article focuses primarily on numerical o *<tt>x//y</tt> returns the quotient of x and y rounded down to the nearest integer. This is also known as integer division. The result w
    3 KB (505 words) - 13:57, 6 May 2024
  • A '''function''' in [[Python]] is a block of code that performs a task. In programming terminology, functions aren't used, they're '''called'''. If necessary, fu ...xample, you can use Python's built-in square root function without needing to know how it's implemented).
    4 KB (683 words) - 23:20, 29 October 2012
  • It's useful to be able to write programs that behave differently when given different input. In [[Py The condition in an if-statement must be an expression that evaluates to a [[boolean]] (that is, either true or false). For this we can use [[opera
    5 KB (787 words) - 12:28, 30 March 2011

View (previous 20 | next 20) (20 | 50 | 100 | 250 | 500)