← All writingClass DesignFor those of you that have never used classes in programming before I'll try to do my best to explain them. One way to look at programming concepts is that we are constantly abstracting something. It starts with using a variable to represent a piece of data. Then you go further and use lists and arrays.Python10 min Defining FunctionsFunctions are probably one of the best things that you can include in a program and the amount that they can simplify a program can never be overstated. In this section, creating and using functions in Python is going to be explored. Functions are really useful when there is a block of code that needs to be referred to multiple times throughout the program.Python10 min We Need More Data!Data types are a crucial part to any programming language and Python really makes it easy for anyone to create an object to contain multiple data types stored into it. It needs to be noted though that for this section, creating and using classes as a data object will not be discussed and will be coming in future sections.Python10 min If, Elif, and ElseDecision making is an essential part of any program and can be found in every programming language. You could also argue that it can be found in HTML code as well with the way that links and buttons work. This programming concept is often referred to as 'selection' because the statements you're writing are selecting the specific block of code to run. There are a few things you need to know about Python in order to use these decision statements correctly.Python10 min Fun With StringsStrings are the data type that Python uses for its text. This is the same in most programming languages. There are different methods that you can perform on Strings than you can in other languages.Python10 min Python: Input-OutputEverything in a print statement, Python reads as a String data type. That means that it interprets it as text and not numbers or Boolean values (true or false).Learn10 min Creating LoopsLoops are seen in every programming language and just about every program out there. Loops are often referred to as iteration. At some point every program will have a section of code that it needs to repeat. In Python there are several ways of creating a loop depending on the intended purpose of the code.Python10 min Coding Camp 2018Probably the best flowchart I've ever seen. -- One of our first assignments in Python using the repl.it website. -- This was on our robot day using Python to program the Edison robots.Blog3 min
#python
8 articles