Dictionary in Python #python #shorts #shortvideo
seen from United States

seen from Brazil

seen from China

seen from Venezuela
seen from United States
seen from China

seen from United States

seen from T1
seen from China
seen from United States
seen from China

seen from United States

seen from Bulgaria
seen from United States
seen from Poland

seen from United States
seen from United States

seen from United States

seen from Bulgaria
seen from United States
Dictionary in Python #python #shorts #shortvideo
Python Dictionary: 1
A Data Science portal, which contains well thought, well written, and well-explained articles for data science aspirants on python for data science. Along with quizzes and practice programming and company interview Questions.
Datatypes
Strings
Numbers
Booelans
Lists
Type
type (argument) will return:
int (if argument is integer)
float (if argument is floating point)
str (if argument is string)
int, float, and str are variables, not strings
Math Commands
Exponent: ** (ex. 2 ** 3 = 8)
Remainder: % (ex. 9%4 = 1)
Functions
Define a function:
def functionName (inputs) :
interior of function contains commands
Call a function:
functionName( input1, input2, input3...)
If an input is a string, it should not be put in quotes in the input parentheses
String Indexing
String indexing starts at 0
string(#) calls on index # in string
string[ 0:len(string) ] calls on all characters in string but can be modified to select just a few (ex. 1:4)