Question

i am having trouble with the print function working. I need the output to say “in...

i am having trouble with the print function working. I need the output to say “in (y) easter is on month (n) and day (p)”
right now i have
print(“ In “ + str (y) “Easter is on month “ + str(n) + “ and day “ + str (p))
but this is producing a syntax error

Homework Answers

Answer #1

# do comment if any problem arises or further clarification needed

# Code assuming python programming language, comment if any other language

#you should do something like

#assign value of y, n and p you want to assign it could be string or number

y=32

n=6

p=3

#use python format strings

print(f"In {str(y)} Easter is on month {str(n)} and day {str(p)}")

Screenshot of code:

Output:

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Using Python (pandas as pd) I am trying to use the split, apply, combine method but...
Using Python (pandas as pd) I am trying to use the split, apply, combine method but am getting an "invalid syntax" error at the end of the line that says "for days_name, days_df in grouped_by_day" I declared grouped_by_day in the split function but did not get any errors so I am not sure what happened or how to fix it. Below is a copy of the split, apply, combine section of my code. mean_data_ser = pd.Series() #split grouped_by_day= days_df.groupby("Day of...
I am working on recursion. I need to create a reverseString method in which if i...
I am working on recursion. I need to create a reverseString method in which if i set the parameter like ReverseString(Maruf, 0) then the output will be furaM. But if i enter ReverseString(Maruf, 2) then the output will be raM. It is removing 2 characters from the reverse. I have to take 2 parameters. method signature is this public static String reverseString(String str, int i){ // Complete the method } Example: Starting word is Hello, reversed from index 2 is...
I am having trouble with the following question. For n is greater than or equal to...
I am having trouble with the following question. For n is greater than or equal to 2 Prove that x is odd if and only if X^n is odd
I am to design a case study for the enzyme, Amylase, but I am having trouble...
I am to design a case study for the enzyme, Amylase, but I am having trouble getting started. What is the medical relevance of the Amylase, as well as any ethical considerations related to testing for disorders related to Amylase? I researched the condition of hyperamylasemia, which is an increase in the amount of amylase in blood. So far the sources that I have found say that there are no symptoms associated with hyperamylasemia. And hyperamylasemia is only indicative of...
Why is my buffer too small? I am compiling a word-definition class and I am having...
Why is my buffer too small? I am compiling a word-definition class and I am having some problems. I am producing an output but I cannot insert another word definition pair without having an error that states: "Buffer is too small". With the output I am producing, I am able to insert a pair(a word and its definition) until the error occurs. When I have searched up the variables I used to add the word and its definition through C++(I...
I have a linear regression project for class and am having trouble doing the T-test. I...
I have a linear regression project for class and am having trouble doing the T-test. I gathered data and now I'm just wondering how I would determine my hypothesis. Is it based on a p-value, do I have to find the t-statistic? I'm confused as in given problems the hypothesis is given? I know the level of significance is .10, so would that be my hypothesis (ho: beta =.10)?
I am having trouble simplifying this question as most of my examples are different than this....
I am having trouble simplifying this question as most of my examples are different than this. Can someone please show me the process. Find y'' in terms of x and y for the implicit relation xy + y2 = 2x. Simplify your answer as much as possible.
*******I am studying for an upcoming test and I am having trouble with QUESTION B) where...
*******I am studying for an upcoming test and I am having trouble with QUESTION B) where I need to find the sample variances for the two cooperatives (BT) and (PA) I would like to see how you end up with 135.14 and 749.70? I am confused about the capital E symbol and why it is used when finding cooperative? 8.80 Lobster trap placement. Given trap spacings among two lobster fishing crews: BT cooperative has spacings = {93, 99, 105, 94,...
Hello! I am coding in c# and I am having trouble using boolean variables and if...
Hello! I am coding in c# and I am having trouble using boolean variables and if statements. The project I am working on is based on the users input, and the code should branch into two different options. However, I am struggling to understand how to take the users input to decide which path to take. Another problem I am having is with my if statements. After the user has inputed information and the code decides to take them down...
HI i am having trouble with my post lab report. It involved Delta H, specific heat...
HI i am having trouble with my post lab report. It involved Delta H, specific heat and other things i am having trouble calculating. I have uploaded the images onto a google document https://docs.google.com/document/d/1VQi5tjHzD-mmVQqBvdczQdkBRWSPpV7N5vY2xlL_Gmw/edit?usp=sharing I AM ONLY ASKING YOU TO complete the questions on PAGE 4 of the google doc. I WOULD HIGHLY APPRECIATE IF IF YOU WOULD SHOW STEP BY STEP, AND EXACTLY WHAT NUMBERS REPRESENT WHICH VARIABLES. Please help me out, I am really struggling in my chemistry...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT