1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mekhanik [1.2K]
3 years ago
15

given a number n for each integer i in the range from 1 to n inclusive print one value per line as follows fizzbuzz if __name__

Computers and Technology
1 answer:
Kruka [31]3 years ago
6 0

Answer:

The program in Python is as follows:

def fizzBuzz(n):

    for i in range(1,n+1):

         print(i)

   

if __name__ == '__main__':

    n = int(input().strip())

    fizzBuzz(n)

Explanation:

This declares the fizzBuzz function

def fizzBuzz(n):

This iterates from 1 to n

    for i in range(1,n+1):

This prints every number in that range; one per line

         print(i)

   

The main begins here

if __name__ == '__main__':

This prompts user for input

    n = int(input().strip())

This calls the fizzBuzz function

    fizzBuzz(n)

You might be interested in
Which of the following Python methods in scipy.stats submodule returns the P-value for performing a hypothesis test for the sign
ipn [44]

Answer:

Option B is the correct answer for the following question.

Explanation:

The following option is true because the pearsonr from scipy module is the method of the Python Programming Language in the submodule i.e., "scipy.stats" which print or return P-value for operating the hypothesis test for the value of correlation coefficient. So, that's why the following option is correct.

7 0
3 years ago
To make a duplicate of text, image,chart,graphs etc.​
Veronika [31]

Explanation:

You can change the formatting of the rest of the text ( bold, italics, font color or sixe, ect)

5 0
3 years ago
Jeremy has created a snippet of JavaScript. Which event handlers will he use to invoke JavaScript from his HTML form?
riadik2000 [5.3K]

Answer:

One of them is OnClick, but there are more.

Explanation:

I took my post test and only clicked OnClick and I missed this one and it says "not all correct answers chosen"

3 0
3 years ago
Read 2 more answers
Convot the following biliary number into decimal form using any method ? (1010.100)2
Temka [501]

Answer:

10.5

Explanation:

1010.1

Handy method you can find searching google images, and I originally learned

from some guy teaching an online java course.

.1 --> 1 * 2^(-1) = 0.5

0 --> 0 * 2^(0) = 0

1 --> 1 * 2^(1) = 2

0 --> 0 * 2^(2) = 0

1 --> 1 * 2^(3) = 8

0.5 + 2 + 8 = 10.5

If for some reason it isn't very clear, just take the number, (x) and multiply it

by two to the power of the position it is in. (e.g. first number before decimal point is 0, second 1, etc).

3 0
3 years ago
How long would it take to leave oort cloud?
il63 [147K]
Voyager 1, is the fastest and farthest of the interplanetary space probes it is leaving the Solar System and will reach the Oort cloud in about 300 years and would take about 30,000 years to pass through it.
4 0
4 years ago
Other questions:
  • You work administrative assistant in an engineering firm. A co-worker constantly makes fun of the engineers by whispering commen
    13·1 answer
  • The true or false questions.
    5·1 answer
  • Can someone please help??
    12·1 answer
  • All of the following are forms of verbal communication except
    12·2 answers
  • What is the autocad term for standard section line symbols?
    13·1 answer
  • (2) Design pseudocode for a program that accepts numbers from the user until the special number 555 is entered (you should use a
    12·1 answer
  • What type of coverage pays for damage incurred as a result of theft, vandalism, fire or natural disaster?
    15·1 answer
  • Choose the best type of loop for each situation.
    6·1 answer
  • Which HTML tag is formatted correctly?
    7·1 answer
  • What are the steps for inserting an internal link?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!