Top answers

All subjects
All levels

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=['Na...

LR
Answered by Lucia R. Python tutor
1472 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...

CP
Answered by Charlie P. Maths tutor
3749 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
1286 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 ...

SJ
Answered by Sara J. History tutor
2986 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 bo...

Answered by Biology tutor
1501 Views

We're here to help

contact us iconContact usWhatsapp logoMessage us on Whatsapptelephone icon+44 (0) 203 773 6020
Facebook logoInstagram logoLinkedIn logo

© MyTutorWeb Ltd 2013–2025

Terms & Conditions|Privacy Policy
Cookie Preferences