-
-
Save Manikant92/a66d5626209adc12bcd9fdbfe196b4bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#importing Neccessary modules/libraries | |
import numpy as np | |
import time | |
# - is for comments in python | |
#generate data for x feature(input data) | |
#intiate empty list | |
x=[] | |
#range function generates values between given two numbers. range(start,end,step): start-default as 0, step- default as 1. | |
#end- till that value excluding that value | |
#range(1,15,1) is similiar to range(1,15) | |
for i in range(1,15): | |
x.append(i) | |
#appending the value into empty list | |
print(x) | |
#output : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment