This file contains 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
a | b | c | d | e | |
---|---|---|---|---|---|
x | y | 0 | 1 | 0.99 | |
x | y | 1 | 1 | 0.43 | |
x | z | 0 | 0 | 0.90 | |
y | z | 0 | 1 | 0.11 | |
x | z | 0 | 1 | 0.78 |
This file contains 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
import pygame | |
import sys | |
import random | |
import time | |
display_size = (720, 480) | |
snakehead = [360, 240] | |
snakebody = [] | |
direction = 'RIGHT' | |
food = [random.randrange(1, display_size[0]//10) * 10, random.randrange(1, display_size[1]//10-20)*10] |
This file contains 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
import scrapper | |
import sys | |
from datetime import datetime, timedelta | |
def startCrawling(date1, date2): | |
print("Crawling started for date range ", | |
date1.strftime('%d-%m-%Y'), ' to ', | |
date2.strftime('%d-%m-%Y')) | |
if date1 > date2: | |
temp = date1 |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# function to calculate average of 3 variables | |
def avg(a, b, c): | |
return (a+b+c)/3 | |
t = int(input()) # type casting is not necessary but making sure is always good. | |
data = [] # to store all the data | |
for i in range(t): # loop through 0 to t-1 | |
x = str(input()) # Taking each row input | |
x = x.split(' ') # splitting the input string into list of separated items. | |
data.append(x) # adding new informations to global data list |
This file contains 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
import sklearn.datasets as datasets | |
import pandas as pd | |
from sklearn.externals.six import StringIO | |
from IPython.display import Image | |
from sklearn.tree import export_graphviz | |
import pydotplus | |
iris=datasets.load_iris() | |
df=pd.DataFrame(iris.data, columns=iris.feature_names) |
This file contains 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
public class Main{ | |
public static void main (String [] args){ | |
System.out.println("3. Java run: OK"); | |
} | |
} |
This file contains 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
AI LAB 06 |
This file contains 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
AI Lab 5 |
This file contains 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
* Take a number N input (1000 <= N <= 1000000) print all the armstrong number from 1 to N. (Or print the count). | |
* Complete the binery search code. | |
* Solve the problems in the note of the group |
NewerOlder