Computer Science, asked by sajdap651, 7 months ago

Write a simple python function to generate a series of floating-point numbers by declaring and updating the global values of the variable and use it to produce the desired range of floating-point numbers by taking input from the user.

Answers

Answered by rishavsharma21pd1prg
0

Answer:

import numpy as np

n=float(input('Enter range of series'))

print("Printing range using float step\n")    

print(np.arange(n))

Answered by ujjwal99355
0

Answer:

import pandas as pd

import numpy as np

strt=int(input('Give start value:'))

end=int(input('Give end value:'))

step=int(input('Give step value:'))

data=range(strt,end+1,step)

data=pd.Series(data,dtype=np.float64)

print(data)

Output:

Attachments:
Similar questions