zybook | Solves zybooks answers | Chat library
kandi X-RAY | zybook Summary
kandi X-RAY | zybook Summary
Solves zybooks answers
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a list of activities .
- Login to Zenbooks .
zybook Key Features
zybook Examples and Code Snippets
Community Discussions
Trending Discussions on zybook
QUESTION
I'm working on zybook labs here is question:
Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the character appears in the phrase.
Ex: If the input is:
n Monday the output is: 1
Ex: If the input is: z Today is Monday
the output is: 0
Ex: If the input is: n It's a sunny day
the output is: 2
Case matters.
Ex: If the input is: n Nobody
the output is: 0
n is different than N.
My codes works only in half way here is code:
...ANSWER
Answered 2022-Apr-18 at 02:08When you do this:
QUESTION
Similar to zyBooks if you are familiar with it, I want to track the sections the user has read through and checked completed with a button.
However, conceptually I am having trouble thinking of what to store in my mongo database, besides just an object or an array of objects that contains each section and bool values, to track their progress. A section will have around 10 subsections. But there will be around 8 sections total. So a total of 80 subsections to keep track of.
This is what I was thinking of but it seems inefficient.
...ANSWER
Answered 2022-Mar-27 at 09:48I think your approach is totally fine with that amount of data.
The question is, what do you mean with "inefficient" ?
From a performance point of view, 80 elements are just no problem. Maybe you just don't feel well with handling that code (which is a valid reason).
An alternative would be:
QUESTION
in my current zybooks lab 3.13 the assignment asks to "Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies."
When I submit my work I am receiving '0/2' on 2 requirements. I need to figure out how to make it stop outputting 'No change' if there is a '0' in the integer. HALP!!!!!
here is my code:
...ANSWER
Answered 2022-Mar-17 at 05:52You can print "No change" before the calculations.
QUESTION
How could I clean up my code? I have the answer that the program wants but since this is zybooks, it want's the answer to be exact but my code outputs for example ('hello', 1) and the output that I need is hello 1. Is there anything I can do?
Question from assignment: Write a program that first reads in the name of an input file and then reads the file using the csv.reader() method. The file contains a list of words separated by commas. Your program should output the words and their frequencies (the number of times each word appears in the file) without any duplicates.
My code:
...ANSWER
Answered 2022-Feb-28 at 16:57count.items()
Instead of using dictionary_items
and looping over each (key, value) tuple in the dictionary, you can directly loop over the dictionary like this:
QUESTION
Alright so this problem has been grinding me for a good hour. I am taking a zybooks course and I'm presented with the prompt,
Statistics are often calculated with varying amounts of input data. Write a program that takes any number of integers as input, and outputs the average and max.
Ex: If the input is:
15 20 0 5 the output is:
10 20 currently I have it 'working' with my code but the issue is I cannot figure out how to keep the input open for more or less inputs as zybooks runs through multiple different tests. i'm sure its something simple im overlooking. anything helps!
...ANSWER
Answered 2022-Feb-09 at 03:36One solution is to have the user specify how many numbers they want to take the average of. For instance:
QUESTION
I have been trying to get this to output correctly. It is saying I'm not adding a line break at the end.
I was wondering, how I could add the line break? From my understanding the code is for the most part right.
I also need to have it take in another output that Zybooks generates itself, so I can't just simply put two print statements of ('*****')
...ANSWER
Answered 2022-Feb-05 at 19:06If you want your function to work, you have to return a value like this.
QUESTION
I will state the obvious that I am a beginner. I should also mention that I have been coding in Zybooks, which affects things. My textbook hasn't helped me much
I tried sub_lyric= rhyme_lyric[ : ]
Zybooks should be able to input an index number can get only that part of the sentence but my book doesnt explain how to do that. If it throws a [4:7] then it would output cow. Hopefully I have exolained everything well.
...ANSWER
Answered 2021-Dec-12 at 23:38You need to set there:
QUESTION
I can't figure out what's happening to cause the errors that I'm receiving to return the pyramidVolume that I'm trying to call. This problem comes from zyBooks and I can only edit the class CalcPyramidVolume. Here is my code
...ANSWER
Answered 2021-Nov-30 at 02:28Finally got it! I'm only able to change what's above the main() method. After reviewing my text material more thoroughly, I seen that I needed to add a public class static double pyramidVolume. I've listed my correction to only the updated class below, since the rest is the same.
QUESTION
I am a beginner trying to figure out a workbook challenge in zybooks. I need to figure out how to figure out the acceleration of gravity in Python.
...ANSWER
Answered 2021-Oct-31 at 12:22You should power dist_center
to 2 instead of 3:
QUESTION
Im a student and this is my first experience with Python so I'm having a little trouble. The electronic workbook I'm using, Zybooks is doing a horrible job of explaining (or lack thereof) how to go about doing what it's asking. The entire lesson does not once talk about how to write this specific type of code.
It asks...
Write a statement that assigns total_coins with the sum of nickel_count and dime_count. Sample output for 100 nickels and 200 dimes is:
...ANSWER
Answered 2021-May-05 at 17:04Well, to start, we need to use your code and adapt it to set total coins
to the number (dime_count
+ nickel_count
). This is very simple:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install zybook
You can use zybook like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page