Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to learn python

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

how to learn python

Oh I see u wanna learn Python its preety easy :D
Comment

how should i learn python

Watch Programming with mosh on youtube
Or if you just need help go to stack overflow or w4schools
Comment

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
Comment

PREVIOUS NEXT
Code Example
Python :: python using enum module 
Python :: add readme cmd 
Python :: how to select top 5 in every group pandas 
Python :: pandas sort dataframe by index 
Python :: tryexept in python 
Python :: convert a string into a list in Python 
Python :: user information in python 
Python :: current url in djago 
Python :: how to show a progress spinner when python script is running 
Python :: set environment variable flask app 
Python :: finding the maximum value in a list python 
Python :: validate ip address 
Python :: copy a dictionary python 
Python :: gurobi python example 
Python :: python 2.7 datetime to timestamp 
Python :: how to find the path of a python module 
Python :: python remove common elements between two lists 
Python :: Tensor.expand_as 
Python :: knn with sklearn 
Python :: sorting values in dictionary in python 
Python :: openpyxl read cell value 
Python :: Insurance codechef solution 
Python :: pandas find all rows not null 
Python :: formula of factorial 
Python :: .split python 
Python :: installing pip in pytho 
Python :: plt.hist using bins 
Python :: reversed python 
Python :: python if string contains char 
Python :: no python application found, check your startup logs for errors 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =