1/28
Looks like no tags are added yet.
message = "I love data analytics courses!" … message[0:2]
characters from position 0 (included) to 2 (excluded) — ’I ’
message = "I love data analytics courses!" … message[2:]
characters from position 2 (included) to the end — ’love data analytics course!’
message = "I love data analytics courses!" … message[:3]
characters from beginning (position 0) to position 3 (excluded) — ’I l'
Lists
fruits = ['apple', ‘banana', 'pineapple', 'mango’]
Sets
Specified by curly braces Set cannot hold duplicate values (will drop any duplicate values)
Dictionaries
Stores value w key value pair (a_dict = {"a":1, "b":2, "c":3, "d": “f”})
check if “b” key exists in a dictionary
'b' in a_dict (returns true/false. Based on the key! Not the value of a key!!!!)
Dictionaries of lists
dol = {"list1":[1, 2, 3], "list2":[4, 5, 6, 7]}
List Of Dictionaries
lod = [{"first":"Jae", "last":"Jung"},
{"first":"Jeremy", "last":"Shafer"}]
Steps of Hypothesis testing
State Null Hypothesis (no relationship between variables)
State Alternative Hypothesis (There is a relationship between variables
Collect Samples
Calculate the test statistics and p-values
Decision rule for rejection of the Null hypothesis (using p-values)