Skip to content

Instantly share code, notes, and snippets.

@Manikant92
Last active July 20, 2018 10:00
Show Gist options
  • Save Manikant92/a66d5626209adc12bcd9fdbfe196b4bc to your computer and use it in GitHub Desktop.
Save Manikant92/a66d5626209adc12bcd9fdbfe196b4bc to your computer and use it in GitHub Desktop.
#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