Python Programming for School Students: Suitable for classs X to XII students by Verma Mahendra

Python Programming for School Students: Suitable for classs X to XII students by Verma Mahendra

Author:Verma, Mahendra [Verma, Mahendra]
Language: eng
Format: epub
Published: 2021-09-05T16:00:00+00:00


In [12]: arange(1,10,1.5) # excludes 10

Out[12]: array([1. , 2.5, 4. , 5.5, 7. , 8.5])

In [13]: arange(10)

Out[13]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

In [14]: arange(4,10)

Out[14]: array([4, 5, 6, 7, 8, 9])

Example 1: The average monthly temperatures of a city for twelve months starting from January are 5, 9, 15, 20, 35, 40, 39, 34, 27, 22, 10, 9 Celcius. To represent this data we employ two arrays.

In [8]: month = linspace(1,12,12)

In [9]: month

Out[9]: array([ 1., 2., 3., 4., 5., 6., 7., 8., 9., 10., 11., 12.])



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.