should i learn python code example

Example 1: learn python

A guide for beginners to learn.
If it helpful, upvote me! Thanks ~~
#Tutorial
https://www.w3schools.com/python/
https://www.codeavengers.com/
https://www.learnpython.org/
https://www.python.org/
https://www.programiz.com/
https://docs.python.org/3/tutorial/
https://codescracker.com/python/index.htm
https://github.com/TheAlgorithms/Python

#Course
https://www.tutorialspoint.com/
https://www.coursera.org/
https://www.udemy.com/
https://www.codecademy.com/
Youtube

#Practice
https://www.hackerrank.com/
https://leetcode.com/
https://www.codewars.com/
https://codeforces.com/
https://www.topcoder.com/
https://www.codingame.com/
https://www.coderbyte.com/
https://exercism.io/
  
#IDE
https://www.onlinegdb.com/
https://www.programiz.com/python-programming/online-compiler/
https://www.codechef.com/ide

Example 2: how to learn python

"""
Great foundation for basics 
https://www.w3schools.com/python/default.asp"
"""

Example 3: how to learn python

# Basic python sum calculator

# If you know how to use function, you can use it, but for starters I will not use it

number_first = input("Please input fisrt number: ") # input() is used to take user input
number_second = input("Please input second number: ") # input() is used to take user input

# There is two way to add two numbers

print(sum((number_first, number_second))) # print() used to print stuff. # sum() takes tuple and sum the two or more numbers in it.
print(number_first + number_second) # print() used to print stuff. This method is easier and just make you do simple math.

=========================================================
# Output:
Please input fisrt number: 1
Please input second number: 7

>>> 8 # sum() printed
>>> 8 # second method printed

Example 4: how to learn python

# Heya! Let me teach you the basics.
print("Hello, World!") # Look, your Python hello world program!
x = "y" # Set global variable x to a string, "y"
#-IMPORTS--
import MyModule # Imports a module called MyModule.
#--PIP--
#Use powershell, cmd, bash, etc and run:
pip install MyModule # Installs MyModule!
#--Functions--
def MyFunc():
  # My Code!
#--COMMENTS--
# Comments start with a hashtag and work for 1 line. multiple lines can use """ at the beginning and """ at the end.

# Thank you!

Tags:

Misc Example