Skip to content
← Back to Community
✨✨The Python Tutorial✨✨
Profile icon
IntellectualGuy

✨✨Hello✨There✨✨

Welcome to My Boring Fun 🐍🐍Python🐍🐍 Tutorial where I will be teaching YOU python. This tutorial will cover the basics of python an I promise you that you will learn a Lot. Without a Further a due go and learn Python! Credits to @RhinoRunner for helping with the tutorial. (Please don't think I am cycle squeezing, this tutorial took me around 1000 lines of markdown). I have attached a repl down below that is a copy of this tutorial(It's split up into 3 files, because the file became to large for our computers to handle.)

Note: Feel free to tell me if something is unclear or if it isn't correct, or if there is anything I can add.

Course Content

Before I get started here is the Course Content

  • Comments
    • Single-Line
    • Multi-Line
  • Print Statements
    • Single-Line
    • Multi-Line
  • Data Types
    • Strings
    • Integers
    • Floating Points
    • Booleans
  • Variables
    • Proper Variable Names
    • Printing them
    • Changing them
    • Type Function
    • f-strings
    • .format
  • String Methods
    • indexing
  • Concatenation
    • Printing Using Concatenation
    • Assigning Variables Using Concatenation
    • Type Casting
  • Operators
    • Basic Operators
    • Assignment Operators
    • Comparison Operators
  • Getting Inputs
    • Storing inputs in a variable
    • Specifying input type
  • Practice Problem
  • Lists
    • List Methods
  • Conditional Statements
    • if
    • else
    • elif
    • pass
    • logic
  • Practice Problem
  • Loops
    • for Loops
    • while Loops
  • Practice Problem
  • Escape Codes
  • Functions
    • Return
    • Parameters
    • Lambda
    • Scope
      • Global
      • Local

Let's Get Started!

Comments

Single-Line Comments

Comments are blocks of code that are ignored by the computer and can be used to stay stuff about your code. The way to tell your computer that you are entering a comment is with a #.

So here's an example:

#This is a comment

Multi-Line Comments

You can also have comments that span multiple lines which are done with three single or double quotes to start and 3 to end.

Here's an example:

#This is a single line comment ''' This is a multiline comment '''

Comments are mostly used when you want to say something about how your code works, so when you revisit your code you aren't confused on what you were doing. Another common use is when you want to leave some code out of your program and not have it run without completely removing it from your code.

Printing

The print() function prints(or outputs) something to the console.

Single-Line Printiing

Here's an example:

print("Python Rules") #You can use either Double Quotes or Single Quotes, but using Double Quotes is the best Practice print('Python Rules') #This works too

This would output

Python Rules Python Rules

Multi-Line Printing

If you want to print text for multiple lines then use 3 single quotes or doubles quotes to start and 3 to end.

Here's an example:

print("Here's my to do list") print(""" To Do: [1] Code In Python [2] Code In Python [3] Code In Python """)

The Output:

Here's My to do list To Do: [1] Code In Python [2] Code In Python [3] Code In Python

Data Types

str or string is a data type that is a sequence of characters and is surrounded in double or single quotes

Ex: "Python Rocks",'Python is Fun'


int or integer is a any positive or negative number (without decimals)

Ex: 5,69,-568


float is any positive or negative number with a decimals

Ex: 69.69,5.0,-15.89


bool or boolean is a True or False(It can only be True or False) value that can be used for Logic (Make sure to capatalize it)

Variables

Variables are data types that are assigned to variable names and are used to store information.

Proper Variable Names

They can use numbers,letters,and underscores, but can't start with numbers. No spaces are allowed either(Use underscores instead). You should use variable names that relate to the value being stored, and variable names that are also short.

Here are a few example of valid and good Variable names:

Apple_Cost = 0.49 Apples_Amnt = 5

Printing Variables

You can also print variables by putting them in the parenthisis of the print Statements

name = "IntellectualGuy" print(name)

It would output IntellectualGuy

Reassigning Variables

You can also change the value of the variable by simply just reassigning it

Pog = False Pog = True

You can also switch the data type

Bannanas = False Bannanas = 3

Type Function

After you change a variable a lot you might want to find out what data type it is so you just use the type() function.

Apples = 5 print(type(Apples))

It would output <class 'int'>, which basically means that the data type of the variable apple is an int or integer.

F-Strings

F-Strings print out stuff with a variable in between. This will become more useful when you learn about inputs.

Here's an example:

username = "IntellectualGuy" print(f"Hello {username}") cycles = 100 print(f"Hello {username} you have {cycles} cycles")

It would output:

Hello IntellectualGuy Hello IntellectualGuy you have 100 cycles

.format()

Another Way to do that is using the .format method which you use like so

print("Hello {}".format("IntellectualGuy")) #You can insert more than one value print("Hello {} you have {} cycles".format(username,cycles)) #You can use variables print("How many {fruit} would you like to buy? Each costs ${cost}.".format(fruit = "bannanas", cost = 0.75)) #You can also use indexing print("Hello {0} you bought {1} bannanas".format("IntellectualGuy",3))

Output:

Hello IntellectualGuy Hello IntellectualGuy you have 100 cycles How many bannanas would you like to buy? Each costs $0.75. Hello IntellectualGuy you bought 3 bannanas

String Methods

There are many different string methods that you can use. String methods are basically functionsthat you can apply to your strings. FOr example the print() function that I explained earlier can print a string to the console.

Something to know before starting string methods it that each character in a string has an index value, starting from 0.

Here's an example

"H e l l o" 0 1 2 3 4 #This shows in the string hello, what characters are in what index positions

Index positions can also be in the negatives like so

"H e l l o" -5 -4 -3 -2 -1

Negative index positions are mainly used for things like getting the last character of a string

Indexing

Indexing is getting the value of a certain index of a string, and you use it like so

greeting = "Hello" print(greeting[3])

Output: l

You can also use negative indexing to get a character

greeting = "Hello" print(greeting[-1])

Output:o

Length

Length is used to get the length , the syntax is len(string) of a string and is used like so

greeting = "Hello" print(len(greeting))

Output:5

Upper

The .upper() method is used to uppercase a string like so

name = "bob" print(name.upper())

Output: BOB

Lower

The .lower() method is used to lowercase a string like so

name = "SAM" print(name.lower())

Output: sam

Concatenation

Concatenation is when you add/join 2 or more strings together.

For example:

User_Type = "Admin" print("You are the" + User_Type)

Output: You are the Admin.

You can also assign a variable using Concatenation

For example:

User_Type = "Guest" Message = "You are a" + User_Type print(Message)

Output: You are a Guest

Remember you can Concatenate more than 2 strings together

For Example:

User_Type = "Admin" Message = "Hello" + User_Type + "What would you like to do?" print(Message)

Output: Hello Admin What would you like to do?

Type Casting

You can't Concatenate strings with integers/floats/booleans, you would have to cast the type, let's say you wanted to print out a message with a number using Concatenation, then you would use tyoe casting, which let's you change the type of a variable.

Ex:

Age = 5 print("Bob you are " + Age + " years old.") #That would produce a Type error, and the way to fix that is to cast the integer age into a string. #Let's do it again without producing an error Age = 5 print("Bob you are " + str(age) + " years old.") #The syntax for type casting is the data type you want to convert the variable to and then the variable inside paranthesis #datatype(variable) #Let's try another Example Name = "Bob" print("I know someone who is 5 years old, his name is" + int(Name)) #This would produce an error because you can't convert the string into an integer, as Bob is not a number

Note: Type casting only temporarily changes the data type of the variable, not permanently, If you wanted to though then you could assign the variable to the casted variable like solution

age = 5 age = str(age) #Now instead of being the integer 5, age is now the string "5"

Operators

Basic Operators

You can do basic Math with Python.

Addition - You can add Two numbers with a plus sign +
Ex: 5 + 5 , 6.9 + 9.6
Output: 10 , 16.5

Subtraction - You can subtract Two numbers with a plus sign -
Ex: 10 - 5 , 9.6 - 6.9
Output: 5 , 2.7

Multiplication - You can multiply Two numbers with an asterik *
Ex: 5 * 5 , 5.5 * 3
Output: 25 , 16.5

Division - You can divide Two numbers with a forward slash /
Ex: 50 / 5 , 20.4 / 4
Output: 10 , 5.1

Power - You can get a power of a number with 2 asteriks **
Ex: 2 ** 3
Output: 8

Modulo - You can get the remainder between Two numbers with a Percentage sign %
Ex: 69 % 6 , 25 % 5
Output: 3 , 0

Floor Divison: Ignores decimals when doing Division with two forward slashes //
Ex:10 // 3,17 // 4
Output: 3,4

You can assign variables to use them for math
Ex:

a = 10 b = 5 print(a + b) print(a - b) print(a * b) print(a / b) print(a % b)

Output:

15 5 50 2 0

Assingment Operators

Assignment operators are used to assign variables using operations. Here is a list of them.

+=
-=
*=
/=
%=
//=
**=

Now let's have a few examples of using them

a = 15 b = 10 #After I print each value out prentend that I am reseting the value of a a += b print(a) a -= b print(a) a *= b print(a) a /= b print(a) a %= b print(a) a //= b print(a) a **= b print(a) #I won't show the output for this because it is to big, but it would output the result of 15**10

Output:

25 5 150 1.5 5 1 Output of 15**10

The Assignment operators are technically just shortened down Basic Operators. For example a += b is just saying a = a + b,it's just another way to write it, however I still recommend using the shortened version.

Comparison Operators

Comparison operators are used to get a true or false value. Here is a list of them

Checking if a value is equal to another value. If it is equal to the other value then the it is True. Otherwise if the other value is not equal to the value it is False - ==


Checking if a value is not equal to another value. If it is equal to the other value be compared then it is false. Otherwise if the value is not equal to the other value then it is False - !=


Checking if a value is greater than another value. If it is greater than the other value then it is True. Otherwise if the value is less than or equal to the other value then it is False - >


Checking if a value is less than another value. If it is less than the other value then it is true. Otherwise if the value is greater than or equal to the other value it is False - <


Checking if a value is greater than or equal to another value. If it is greater than or equal to the other value then it is True. Otherwise if the value is less than the other value then it is False - >=


Checking if a value is less than or equal to another value. If it is less than or equal to the other value then it is True. Otherwise if the value is greater than the other value then it is False. - <=


Something to remember is that there are opposite comparison operators like == and != are opposite value because == is checking if the values are same and != is checking if the values are different.

Opposite Pairs:

== and !=
> and <=
< and >=

Getting Inputs

You can also get the user to input something using the input() function, here's an example of using it:

input("How old are you: ")

Output

How old are you: 69

It would output How old are you and then I could say whatever my age was.

Storing inputs in a variable

You can store the input that you get from a user into a variable like so

age = input("How old are you?")

Output:

How old are you: 69

Remember it doesn't print 69, I am just using 69 as an example input.

Specifying input type

You can also specify the data type of the input like so

age = int(input("How old are you?"))

Output:

How old are you: 69

Practice Problem 1

Small Exercise

Try to make an multiplication calculator where you ask the user to input 2 numbers and then output the product of the 2 numbers

Solution:

#Getting a number from the user number1 = int(input("Enter a number")) #Getting another from the user number2 = int(input("Enter another number")) #Adding the 2 numbers together product = number1 * number2 #Printing out a message to the user telling them the product of the two numbers print(f"The product of {number1} and {number2} is {product}")

Lists

Lists are one of the more complex python data type. Lists hold other data types like strings, integers, floats, and even lists(We will go over nested lists in the next tutorial). They are declared using this syntax

fruits = ['apple','bannana','orange']

Each list item has an index, like strings. The index starts from 0.

Here's an example to show

fruits = ['apple','bannana','orange'] # 0 1 2

Lists also use negative indexing

fruits = ['apple','bannana','orange'] # -3 -2 -1

List Methods

There are many methods that you can use with lists.

The .append() method adds an item to the list

Example:

fruits = ['apple','bannana','orange'] fruits.append('mango')

Now fruits is ['apple','bannana','orange','mango']

The .pop() method removes an item from a specific index

Example:

fruits = ['apple','bannana','orange','mango'] fruits.pop(3)

Now fruits is ['apple','bannana','orange']

The .remove() method remove a certain item from a list

Example:

fruits = ['apple','bannana','orange','mango'] fruits.remove('orange')

Now fruits is ['apple','bannana','mango']

The del method can delete a whole list or a specific index of a list

Example:

fruits = ['apple','bannana','orange','mango'] del fruits[0]

Now fruits is ['bannana','orange','mango']

Another Example:

fruits = ['apple','bannana','orange','mango'] del fruits

Now there is no fruits list.

Conditionals

Conditionals can be used to create code that will run if a certain condition will used, the syntax is like so

if [condition]: code

If you don't specify if you want the code to run if the condition is true or false then the default is that when your code is run, if the condition is true then the code will run.

Here's an example of a valid if statement using comparison operators

age = 69 if age == 69: print("You are 69 years old")

Output:

You are 69 years old

Another Example

age = 69 if age == 13: print("You are 13 years old")

Output:

#Nothing because you are the varaible age is not 13, and only if the age is 13, then it will say You are 13 years old.

Elif

Elif is to have multiple conditions that can check if something is true if the if statement is not true. You can have as many elif statements as you want.

Example:

age = 9 if age == 13: print("You are 13 years old") elif age == 9: print("You are 9 years old")

Output

You are 9 years old

Another Example

age = 11 if age == 13: print("You are 13 years old") elif age == 4: print("You are 4 years old")

Output:

#Nothing because in the first statement, age is not 13, so it won't run and in the second statement age is not 4 so it won't run either

Else

Else conditions, are run when all of your if or elif statements are run, and haven't been executed.

Note: In if,elif, and else statements, in a single conditional, only one condition will run. So let's say you have multiple conditions, and 2 of them are true. The one that was stated the first will be run, and the second one won't be run.

Here's an example

age = 8 if age == 13: print("You are 13 years old") elif age == 9: print("You are 9 years old") else: print("You are not 9 or 13 years old")

Another Example:

age = 13 name = "Bob" if age == 13: print("You are 13 years old") elif age == 9: print("You are 9 years old") elif name == "Bob": print("Your name is Bob") elif name == "Mike": print("Your name is Mike") else: print("You are not Mike or Bob, and you are not 13 or 9.")

Output:

You are 13 years old

Remember the reason it won't output "Your name is Bob" is because only one statement will run in a single conditional statement.

pass

The pass keyword is used as a placeholder so when you have a if statement that you want nothing to execute if that condition is true then use the pass keyword

Example:

age = 15 if age == 15: pass else: print("You are not 15")

This wouldn't output anything because nothing happens in the if statement because there is a pass

Logic

You can have multiple conditions in each if statement, using the and keyword and the or keyword.

When you used the and keyword then the code will only run when all conditions are true.

When you use the or keyword then the code will run if one or more of the conditions are true.

Practice Problem 2

Small Exercise

Try to make an odd and even checker, where you get a number from user input and then the computer will check if the number is odd or even. If it is odd then print out the number and say that it is odd, and if it is even then print out the number and say that it is even. Go make a new repl and try it out! If it becomes too hard then feel free to check out the solution.

Solution

#First Let's get the number input from the user, and let's call it number_input number_input = int(input("What number Would you like to check?")) #Then let's create the conditional Statements #Checking if the number is even if number_input % 2 == 0: #Printing out the message that says the number is even print(f"Your number {number_input} is even.") #Now we'll have an else statement because if the number is not even then it must be odd.But it's okay if you used an elif. else: #Printing out the message that says the number is odd print(f"Your number {number_input} is odd.")

Loops

Loops are used to run things multiple times, and there are 2 main types, for loops and while loops

For Loops

For loops are used to iterate through items in a list, dictionary, integer, or string. They can be used to do something for every item in a variable.

Example:

example_list = ['item1','other item','last item'] #we now have a list for i in example_list: #loops through everything in the list #and assigns the current thing to the variable i print(i)

output:

item1 other item last item

As you can see, it looped through every value in the list example_list.
The reason the i is there is to have a variable you can assign to the thing it is looping through. You can change i to any other name as long as another variable doesn't have the same name.

Another thing you can use is range.

for i in range(10): print(i)

output:

0 1 2 3 4 5 6 7 8 9

It starts from 0 and goes to the number before the number you said, so it has 10 numbers in it.

If you want to exit a for loop, you can use break.

for i in range(10): if i == 5: break else: print(i)

output:

0 1 2 3 4

As you can see, when the number reached 5, the loop ended.
You can also skip iterations using continue.

for i in range(10): if i == 5: continue else: print(i)

output:

0 1 2 3 4 6 7 8 9

When the loop reached 5, it skipped the print statement and went back to the beginning of the loop.

While Loops

While loops are used to run a program while the variable stated is the condiion stated.

Example:

num = 6 other = 1 while num > other: print(other) other += 1

output:

1 2 3 4 5

So, the loop keeps going on so long as num is greater than other, it prints other. But, when they were equal (both at 6), the loop stopped.

You can also use break and continue in while loops. It works the same as it did in the for loops.
The most common usage for while loops is with bool values.

var = True while var: print('hello')

output:

hello hello hello hello hello hello hello hello ...

Since var is never changed (it always stays true), the loop goes on forever.

Practice Problem 3

Make a program where for every number from 1-100, if the number is divisible by 15, it would print Fizzbuzz, if the number is divisble by 5, it would print Fizz, if the number is divisble by 3 then bring Buzz, otherwise it wil just print the number.Then Ask the user If they want to start the program again, if yes than restart it again, otherwise break out of the loop. Go make a new repl and try it out! If it becomes too hard then feel free to check the solutions.

Challenge: Ask the user the maximum number they want the program to run to.

Solution:

#A while loop to keep on running the program if the user wants it to while True: #A for loop to iterate through each number in the range of 1-100 for number in range(1,101): #An if statement to check if the number is divisble by 15 if number % 15 == 0: #Printing out Fizzbuzz print("Fizzbuzz") #An elif statement to check if the number is divisble by 5 elif number % 5 == 0: #Printing out Fizz print("Fizz") #An elif statement to check if the number is divisble by 3 elif number % 3 == 0: #Printing out Buzz print("Buzz") #An else statement to print out the number else: #Printing out the number print(number) #Asking the user if they want the program to run again again = str(input("Would you like to run the program again? Enter Y/N: ")) #An if statement checking if the user said they want the program to run if again.upper() == 'Y': #Using pass as a placeholder because we want the program to continue pass #An else statement to break the while loop else: #Breaking the loop break

Challenge solution:

#A while loop to keep on running the program if the user wants it to while True: #Asking the user what they would like the maximum number to be max_range = input("What would you like the range to be? ") #A for loop to iterate through each number in the range of 1- whatever number they chose for number in range(max_range): #An if statement to check if the number is divisble by 15 if number % 15 == 0: #Printing out Fizzbuzz print("Fizzbuzz") #An elif statement to check if the number is divisble by 5 elif number % 5 == 0: #Printing out Fizz print("Fizz") #An elif statement to check if the number is divisble by 3 elif number % 3 == 0: #Printing out Buzz print("Buzz") #An else statement to print out the number else: #Printing out the number print(number) #Asking the user if they want the program to run again again = str(input("Would you like to run the program again? Enter Y/N: ")) #An if statement checking if the user said they want the program to run if again.upper() == 'Y': #Using pass as a placeholder because we want the program to continue pass #An else statement to break the while loop else: #Breaking the loop break

Escape Codes

There are multiple escape codes that you can use in your code to do different things

\n This prints the text on a new line.

Ex:

Code:

print("Hello\nTesting\n\nBackslash n")

Output:

Hello Testing Backslash n

\t This prints a tab.

Ex:

Code:

print('\ttab\t\t\tmore tabs')

Output:

tab more tabs

Functions

A function is a block of code that runs code. They are mainly used when you want to use code again and again, without having to write it multiple times.

Here is the syntax for it

def function_name(): code_to_run

Here is an example:

def add(): sum = 5 + 5 print(sum)

The way that you use or call functions is through this syntax

add()

Output: 10

And you can use the function multiple times.

return

There is a special keyword that can be used in functions and it is the return keyword

What the return keyword does, is that it gives the function that you call a value. And you have to print the function out when you want the code that was run

So here's an example

def try_func(): x = 5 return x try_func()

You might think that using try_func() would print out 5, but really it would assign the value of 5 to the function. If you wanted it to print out 5, then you would have to do print(tryfunc())

Parameters

Parameters are something used in a function to make it more versatile and interactive. Parameters are variables, that you pass in when trying to call a function.

Here's the syntax:

def function_name(parameters_needed): code_to_run

Syntax to run it:

function_name(parameters)

Here's an example of a function using paramters

def add(num1, num2): return int(num1) + int(num2) print(add(9,10)) # 9 and 10 are parameters

this should output

19

Basically, the function is just saying, give me two numbers, and I'll add them and return the sum.

Lambda

Lambdas are short functions that you can use in your code, and are assigned to variable names.

Here's the syntax

variable_name = lambda parameters : code_to_run

Calling syntax:

variable_name(parameters)

And here's an example

multiply_by5 = lambda num: num * 5

Calling it:

print(multiply_by5(5))

Output: 25

You can also use lambdas in function, the are mostly used in the return

def concatenator(string): return lambda string2 : string2 + string er_concatenator = concatenator("er") print(er_concatenator("Program"))

Output:Programer

Scopes

A scope is where a variable is stored. Like if it's inside if a function.

Global

The global scope are variables that can be accesed by all of your code.
eg.

x = 'This is in the global scope'

Local

The local scope is the scope of a function, and you may notice, that when you set a variable inside of a function then you can't access it outside the function, and you will get an error. This happens because the version of that variable only changes inside of the function. Here is an example of the error.

def y(): x = 1 y() print(x)

The way you can fix this is by using the global keyword and declaring that variable as a global variable

def y(): global x # Declaring x to be a global variable x += 1 y() print(x)

The global keyword basically moves the x variable from the local scope to the global scope, and all changes that are made when the function is called is applied to the global version of x.

Conclusion

Wow, did you actually read all of that, or did you just skip to the ending?
That was (pretty much) all of the python basics!
If you want a further explanation on something, or feel as if we missed something, put it in the comments and we will make revisions!

MAIN CONTRIBUTOR: @IntellectualGuy

PARTIAL CONTRIBUTOR: @RhinoRunner

Credit for typos - @mitiok, and @FameyRose

Voters
Profile icon
AlzheusGarcia
Profile icon
capere24
Profile icon
KennedyMundy
Profile icon
IntellectualGuy
Profile icon
Awan123
Profile icon
ZacharyCashmore
Profile icon
LoWing
Profile icon
DustToAshes00
Profile icon
AnkitAgrawal20
Profile icon
BraydenBaker3
Comments
hotnewtop
Profile icon
[deleted]

Imma upvote bc

• This probably took ages
• It's very helpful
• I like it :)
• I'm nice
yuh

JUST REALISING THAT I UPVOTED YESTERDAY-

Profile icon
pythongeek1010

@Rainbowstuff Lollllllll XD

Profile icon
[deleted]
Profile icon
MustafaShazlie
Profile icon
IntellectualGuy

@MustafaShazlie lmao, glad you like it

Profile icon
ch1ck3n

im not gonna upvote

why?
there are a thousand python tutorials in the repl talk already

Profile icon
IntellectualGuy

@ch1ck3n I am sorry that you don't like it, but I will be adding functions to it shortly.

Profile icon
ch1ck3n

@IntellectualGuy no its not that i don't like it, but there are too many python tutorials out there.

Profile icon
IntellectualGuy

@ch1ck3n Ok, it's not just you multiple other people have been saying it's trash.

Profile icon
ch1ck3n

@IntellectualGuy ok since I like this one because it's actually good I will upvote

Profile icon
zplusfour
Profile icon
Maudie13
Profile icon
JDJGInc_Offical

@ch1ck3n Look, I know python and for sure I can tell you this is on of the good tutorials.

Profile icon
ch1ck3n

@JDJGInc_Offical I saw the word "scopes" and i knew it was good

Profile icon
codingjlu

@IntellectualGuy this isn't trash it's great but wayyyyy tooooo many Python tutorials.

Profile icon
ShiftyBoo

@ch1ck3n How many HTML tutorials are there? I'm hoping to make one, but I don't want to be repetitive if there are a lot.

Profile icon
ch1ck3n
Profile icon
ShiftyBoo

@ch1ck3n So in other words, yes I will be repetitive if I make one.

Profile icon
ch1ck3n
Profile icon
ShiftyBoo
Profile icon
sbzm

if you like it then you will upvote @ch1ck3n

Profile icon
ch1ck3n
Profile icon
sbzm

yes u,
question: when i updooot
answer: when you like it
@ch1ck3n

Profile icon
Sleek

this deserves more likes

Profile icon
IntellectualGuy

@Sleek thx

Profile icon
Sleek
Profile icon
[deleted]

@Sleek likes = NNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOO! UPDOOTS FOREVER

Profile icon
OldWizard209

And BTW, you need to credit Udemy for The FizzBuzz challenge. I pretty sure that is from the Python course which I bought on Udemy. You may have bought it too. So PLEASE credit them... @IntellectualGuy

Profile icon
IntellectualGuy

@OldWizard209 It's a very common thing that is used, but sure I will. Also I see you haven't upvoted, anything wrong?

Profile icon
RhinoRunner

@IntellectualGuy I mean, not everybody has to upvote.

Profile icon
IntellectualGuy

@RhinoRunner I know, I'm just asking if there is anything wrong, not asking for upvotes.

Profile icon
OldWizard209

Sorry, Lol I upvoted and closed the tab quickly and there were many apps running so the processing speed might be slow. I will upvote agiain. @IntellectualGuy

Profile icon
IntellectualGuy

@OldWizard209 You didn't have to, I was just asking if anything was wrong because I really want this tutorial to be good cause I spent a lot of time on it.

Profile icon
[deleted]

@OldWizard209 not from udemy, it's a common question for interviews

Profile icon
[deleted]

Thats like saying "And BTW, you need to credit Udemy for The Hello World challenge. I pretty sure that is from the Python course which I bought on Udemy. You may have bought it too. So PLEASE credit them..." @OldWizard209

Profile icon
vaytran

Love it !!!

Profile icon
IntellectualGuy

@vaytran tysm!!!

Profile icon
AshLikes2Code

Cool!

Profile icon
AshLikes2Code

Cool!

Profile icon
IntellectualGuy
Profile icon
Andrewsmith291

Thanks for the Post, I am learning Python and this is very useful for me.

Profile icon
IntellectualGuy

@Andrewsmith291 Np, I have a part 2 coming up soon that has more intermediate concepts.

Profile icon
[deleted]

This is really helpful in making my jaeger :D. I plan to teach others python while doing this, so this is like the meaning of life for me.

Profile icon
InvisibleOne
Profile icon
IntellectualGuy

@InvisibleOne I swear I don't know how in the world that's there

Profile icon
InvisibleOne

I think it's just some crazy glitch @IntellectualGuy

Profile icon
MADISONLONG1

@InvisibleOne secret twin

Profile icon
CookieSnowOwl

Bro if u hate dis then ya gotta try doing one yourself. Python tutorials are hard to make. I've tried to make one................... I went way too fast. I talked about printing then skipped to like functions then like modules.... it's not ez

Profile icon
FlaminHotValdez

@CookieSnowOwl I'm not saying it's difficult, I'm saying it's overdone, redundant, and unnecessary.

Profile icon
ShiftyBoo

@FlaminHotValdez I agree. too many python tutorials on the internet

Profile icon
cannonthepom123

im making a text adventure game with this and am trying to make an ascii house
/
| 0|
but it won't let print the '/' symbol
how would I do that?

Profile icon
IntellectualGuy

@cannonthepom123 You would do \\, because \ is a special character.

Profile icon
cannonthepom123

@IntellectualGuy
ooohh, ok thx

Profile icon
programmeruser

Why is it that the top tutorials on repl.it are almost all Python tutorials?

Profile icon
[deleted]

Epic tutorial I can see a lot of effort has been put into this

Profile icon
IntellectualGuy
Profile icon
RobertMoore123

Sorry I must say I did stop ready after I saw you did use the following and did say that it was and example of a good variable name :

Apples_Amnt

As this doesn't follow the pep8 guidelines, I just stop reading on. There is no point in learning from this tutorial there go against good practices in pep 8.

You should not teaching bad practices and I hope you will fix this, so your guide will follow pep 8.

Profile icon
sbzm

thanks i was learning and mastering html(css js) then i read this

Profile icon
CrawzyLedonen

I haven't even read the whole thing and I am still upvoting this

Profile icon
CHIKEZIESTEPHEN

but i like the tutorial

Profile icon
CHIKEZIESTEPHEN

didn't talk more on for loops

Profile icon
Darnedest

Great work😉
You missed out dictionaries.

Profile icon
RoryWagland

hi

Profile icon
Mr-Woo

Excellent work, gives everyone somewhere to look to get a quick intro to the basics. I needed this, many thanks!

Profile icon
Pryor8840

Thanks for sharing. I found a lot of interesting information here.

Profile icon
IntellectualGuy

@Pryor8840 No problem, that's what this tutorial is for. :)

Profile icon
AdrianRiojas

hey im attempting to print a message and its not working. edit i found out why i was usint int keyboard.

Profile icon
BitMimic

very good. Can you do one on classes?

Profile icon
FameyRose

Hi! on Practice number 3, i just couldn't make the last line which is "break" to work. it keeps on returning this error "break outside loop"
what worked for me is by using sys.exit() instead of break. Could you please check this as well? perhaps i am doing something wrong trying your code? looking forward to hear from you, i am almost finished with your material:)

Profile icon
IntellectualGuy

@FameyRose, seems to be working for me, check your indentation, that might be the root cause. If it still doesn't work than can you send me the link so I can help find out the problem.

Profile icon
FameyRose

hi! just wanted to point out a correction on PRACTICE PROBLEM 2
should be "if number_input % 2 == 0:" and not if number_input % 2 = 0:
was trying it out and noticed:)
and thank you for compiling this, really a great and engaging tutorial!

Profile icon
IntellectualGuy

@FameyRose Thank you for pointing that out, I will change that and give you credit.

Profile icon
RinUnderscore

YOU NEED TO DO THIS FOR EVERY LANGUAGE THIS IS AMAZING
wow how long did this take you

Profile icon
wowadino1

Very helpful! Thank you!