mersenneforum.org  

Go Back   mersenneforum.org > Search Forums

Showing results 1 to 20 of 20
Search took 0.01 seconds.
Search: Posts Made By: Dylan14
Forum: Dylan14 2020-10-24, 18:10
Replies: 19
Views: 12,402
Posted By Dylan14
Introduction to lists

(placeholder)
Forum: Dylan14 2020-07-19, 21:46
Replies: 19
Views: 12,402
Posted By Dylan14
Forum: Dylan14 2020-07-19, 21:46
Replies: 19
Views: 12,402
Posted By Dylan14
Strings part 2 - indexing, repeating, and slicing

So far, we have dealt with the concept of strings, the fact that we can concatenate them, and using the format command to change how the string appears when outputted. But there are other things we...
Forum: Dylan14 2020-01-12, 01:44
Replies: 19
Views: 12,402
Posted By Dylan14
Putting it all together

Now that we have learned about if, else, elif, for and while, we can go on and try to work with all of these to build programs. We'll do a few examples, one of which is an OEIS sequence.

Example:...
Forum: Dylan14 2020-01-10, 01:53
Replies: 19
Views: 12,402
Posted By Dylan14
While loops

In the last two sections, we covered for loops, which allows us to run a loop for a certain number of times. But say we want to run a piece of code if some condition is true. To do this, we can use a...
Forum: Dylan14 2020-01-09, 02:13
Replies: 19
Views: 12,402
Posted By Dylan14
For loops part 2: The break and continue commands

So far, we just dealt with how for loops work on a high level, and we constructed a few ways to set up a loop (namely, using either an iterable object or a range object). But say we want to control a...
Forum: Dylan14 2019-12-25, 00:52
Replies: 19
Views: 12,402
Posted By Dylan14
For loops part 1: Introduction to for loops

So far, we covered one part of the backbone of programs: the if/else/elif statements. Now we move to loops. A loop (in coding lingo) is a sequence of statements which is specified once, but can be...
Forum: Dylan14 2019-12-21, 20:18
Replies: 19
Views: 12,402
Posted By Dylan14
Modules and packages

So we have mentioned that functions and classes are the backbone of modules, which are used to extend the abilities of Python. So what exactly are modules, and how can we add some to Python?
A...
Forum: Dylan14 2019-12-06, 23:49
Replies: 19
Views: 12,402
Posted By Dylan14
Functions

So far we have dealt with some of the functions built into Python 3. We haven't touched all of the functions yet (we haven't dealt with for loops, the while function, slicing, file operations, etc.),...
Forum: Dylan14 2019-11-24, 01:49
Replies: 19
Views: 12,402
Posted By Dylan14
If/else, part 2: the elif command

In the last section, we learned about the if command and the else command. This allowed us to run a piece of code if a logical expression was true, and another thing if it was false. Now suppose...
Forum: Dylan14 2019-11-19, 02:24
Replies: 19
Views: 12,402
Posted By Dylan14
If/else, part 1: the if command and the else command

Now that we have dealt with the print command and other related commands (such as the format command and the input command), it's time to move on to stuff that will form the backbone of many...
Forum: Dylan14 2019-11-12, 23:07
Replies: 19
Views: 12,402
Posted By Dylan14
The format command

Do you know that in a lot of programs one can change how things are formatted? For example, many word processors (including the WYSIWYG editor that I am using to type this part of the tutorial) have...
Forum: Dylan14 2019-11-12, 23:07
Replies: 19
Views: 12,402
Posted By Dylan14
Concatenation of strings and the "input" command

In the previous section, we dealt with the print command and we also took our first serious look at strings. However, we kept it very simple, and we considered only one string at a time. Now, what if...
Forum: Dylan14 2019-11-10, 02:48
Replies: 19
Views: 12,402
Posted By Dylan14
The Print Command and your first program

Now in the previous post in this guide I mentioned the "Hello World" program being the first program that aspiring programmers type out in the language of their choice. With our background that we...
Forum: Dylan14 2019-11-04, 00:37
Replies: 19
Views: 12,402
Posted By Dylan14
Basic Constructs: strings, integers, floats, complexes, bools

Okay, we've covered how to get python, we've covered how to be wary of our syntax, and we've learned how to comment and (hopefully) do it properly. We should be ready to go, right? Not so fast. In...
Forum: Dylan14 2019-11-04, 00:37
Replies: 19
Views: 12,402
Posted By Dylan14
Comments

Perhaps the most useful thing of good code is well commented code. After all, without them, we would just have to rely on reading the source code and hope that we understand what is going on in the...
Forum: Dylan14 2019-11-04, 00:36
Replies: 19
Views: 12,402
Posted By Dylan14
Basic Syntax

In order to code, you must understand two things:
1. The functions that make up the language (otherwise you aren't going to do anything).
2. The syntax used in the language. This is arguably more...
Forum: Dylan14 2019-11-03, 04:29
Replies: 19
Views: 12,402
Posted By Dylan14
How to get/use Python

Of course, before we can actually go about and learn how to use Python, we need to first acquire the Python interpreter/environment. There are several ways to do this:


1. Download Python from...
Forum: Dylan14 2019-11-03, 04:27
Replies: 19
Views: 12,402
Posted By Dylan14
Motivation for the Guide

So you might be wondering why I am writing this guide here. This is a valid point. In fact, I can see multiple points of contention:


1. There is, like, a thousand other tutorials out there on...
Forum: Dylan14 2019-11-03, 04:27
Replies: 19
Views: 12,402
Posted By Dylan14
A Guide for Python

This thread is intended to be a guide to program in Python, starting (hopefully) from the beginning. It is intended for those using the Colab/Kaggle interface, but it can be useful for those using a...
Showing results 1 to 20 of 20

 
All times are UTC. The time now is 19:19.


Wed Oct 20 19:19:36 UTC 2021 up 89 days, 13:48, 1 user, load averages: 1.52, 1.59, 1.61

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.