Top answers


With the help of Pandas and Numpy library create a DataFrame with the columns "Name", "Surname", "Age" and "Gender", create as many rows as you want. Print out the result.

import pandas as pdimport numpy as npdf = pd.DataFrame(np.array([["John", "Smith", 23, "Male"], ["Emily", "Adams", 19, "Female"]]), columns=['Name'...
LR
Answered by Lucia R. • Python tutor
2113 Views

On the same diagram, sketch the graphs of: y = |5x -2| and y = |2x| and hence solve the equation |5x - 2| = |2x|

y = |2x| is a "V" shaped graph with a gradients of 2 and -2 that inflects at the origin (0,0)y = |5x - 2| is a "V" shaped graph with gradients of 5 and -5 that inflects at the point (2/5,...
CP
Answered by Charlie P. • Maths tutor
5093 Views

Define a function that takes in the age of the user and adds it to an output sentence such as "You are ..... old".

def userName(): age = int(input("How old are you? ")) print(("You are {} old.").format(age))userName()
LR
Answered by Lucia R. • Python tutor
1830 Views

How did Hitler break the Molotov-Ribbentrop pact with Stalin?

The neutrality pact between Nazi Germany and the Soviet Union, signed on August 23 1939 was broken on June 22 1941 when Hitler launched Operation Barbarossa. It was the code name for the Axis invasion of the...
SJ
Answered by Sara J. • History tutor
4962 Views

Describe the structure of proteins

-Primary structure is the number and sequence of amino acids in a polypeptide.-The secondary structure of a polypeptide is the formation of alpha helices and beta- pleated sheets stabilised by hydrogen bondi...
Answered by • Biology tutor
2300 Views