Find an Online Tutor Now

300 Answered Questions for the topic Python

How can I print these elements of the list in python?

The list is given [ 1, 2, [3, 4, 5], [6, 7]]. How can show the output as 1, 2, 3, 4, 5, 6, 7.
Python

8d

what is the result of >>>print(3+11)

Insert/Display an image from a list on Python. NEED HELP ASAP!!!

I am currently writing a program that requires these 5 criteria:1. Display all U.S. States in Alphabetical order along with the Capital, State Population, and Flower 2. Search for a specific state... more

Write a program in python using tuple if possible.

Pure Gems Store sells different varieties of gems to its customers. Emerald, Ivory, Jasper, Ruby, Garnet and their prices are 1760, 2119, 1599, 3920, 3999 respectively. Write a Python program to... more

21d

Python code using an array at GCSE level

Hello, I'm having trouble converting this algorithm into a python code using an array. The algorithm is that: the code asks the user for input (of a integer) for the value of a,b,c,d,m and n. It... more
Python Java C++

08/09/20

What do you know about USACO?

I have no coding background. I don't know where to start studying for USACO?Which programming language is the best for USACO?
Python

07/26/20

Complete the function to remove a dictionary item if it exists

#Task 11# Complete the function to remove a dictionary item if it existsdef removeDictItem(mydict, key): # expected output: {'tomato': 'red', 'lime': 'green'}print(removeDictItem({'tomato': 'red',... more
Python

07/26/20

Complete the function to remove a dictionary item if it exists

#Task 11# Complete the function to remove a dictionary item if it existsdef removeDictItem(mydict, key): # expected output: {'tomato': 'red', 'lime': 'green'}print(removeDictItem({'tomato': 'red',... more
Python

07/26/20

Complete the function to print the full name of the month using the calendar library

import calendar# Complete the function to print the full name of the month using the calendar library def printMonthName(monthNum): # expected output: MarchprintMonthName(3) # expected output:... more
Python

07/26/20

Complete the function to print the full name of the day of the week

import calendar, datetime# Complete the function to print the full name of the day of the weekdef printWeekdayName(year, month, day): # expected output: Friday printWeekdayName(2001, 8, 31) #... more
Python Science Computer

07/17/20

computer sciiii

Computer Science (Python)

07/13/20

Looking for a tutor! I am self-taught in Node, Express, Python and SQL

Hey there!My name is James, and I started teaching myself html and css about 5 years ago, then jumped into javascript.I am hoping to change direction and focus on python and sql, more along the... more

07/11/20

Calculus trapezoidal and simspsons rule using python programming

this question is to be sovled using python programmingFor each of the integral given below, do the following using Python Programminga)         plot the graph related to Trapezoidal's rule or... more
Python Coding

07/03/20

I am looking for a tutor for python coding for my 8 year old son - are you able to teach young kids?

I am looking for a tutor for python coding for my 8 year old son - are you able to teach young kids?My son likes math and anything analyticalHe knows scratch and has dabbled in python a bit - just... more
Python

07/01/20

Python programming

This week's project is to extend the Employee class and its subclasses to create a Company class structure. A company consists of Teams, and each team contain a group of employees. In this group... more
Python

06/19/20

python question

You go on a wonderful holiday (perhaps to jail, if you don’t like happy exercises) leaving on day number 3 (a Wednesday). You return home after 137 sleeps. Write a general version of the program... more
Python Physics Velocity

06/04/20

How do you find the question mark for the part of the force exerted on the stone? The answer should include other variables

ball = sphere ( pos=vec(-2,1,0 ), m = 0.5 , alpha = 0*pi/180,#alpha = angle radius=0.02, color=color.red, make_trail=True, trail_type='points') #,interval=50,retain=50)ball.v = vec( 1,... more

Describe the four pillars of object oriented programming

Encapsulation, Inheritance, Abstraction, Polymorphism

05/07/20

Programming - Sedimentation App

Programming - Sedimentation App1.1 Problem StatementThe figure below shows a lake within which sediment, suspended in the water, rains down and slowly builds up on the lake floor. Obviously the... more

Need Help with this Computer Science questions

consider the following function named "mystery" def mystery (slist): d = {} for w in slist: n = len(w) if n not in d: d[n] = [w] else: ... more
Python

04/14/20

using a leading zero (0) in Python 3.8

Why do you get the error below in Python ver 3.8print(01)SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
Python

04/13/20

using Python to interpret - How many seconds are there in 42 minutes 42 seconds?

How many seconds are there in 42 minutes 42 seconds? interpret in Python 3.8
Python

04/05/20

I'm trying to build a twitter bot using code from github but I keep getting a error with selenium

(amazing-blend-273309)$ diffengineTraceback (most recent call last): File "/usr/local/bin/diffengine", line 10, in <module> sys.exit(main()) File... more
Python

04/01/20

Cost calculator: how to count strings in a positional argument in Python

The goal is to calculate the cost of a order at a pizza shop. For example:cost([ ], ["pepperoni"], ["ham", "anchovy], drinks = ["small"])should calculate the price of one plain pizza, one pizza... more
1 3 4 5 6 7 12

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.