Skip to content

Instantly share code, notes, and snippets.

View suhailgupta03's full-sized avatar
:octocat:

Suhail Gupta suhailgupta03

:octocat:
View GitHub Profile
import tensorflow as tf
import numpy as np
import pandas as pd
import os
from sklearn.preprocessing import MinMaxScaler
import os
import csv
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
{
"name": "display",
"version": "0.1.0",
"private": true,
"homepage": "./",
"dependencies": {
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-scripts": "2.0.4"
},
import numpy as np
import pandas as pd
import random as rand
world_df = pd.read_csv('world01.csv',
names=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
# Change world as multi dimensional array
world = world_df.values
print(world)
var y = 200; // Assign 100 to y
switch(y){ // switch is taking 'y' as a value
// to validate
case 200: // will check if y == 200
console.log("this is 200");
break; // this will exit the switch block
case 300: // will check if y == 300
console.log("this is 300");
break;
default: // if none of the condition is true
var y = 200; // Assign 200 to y
switch(y){ // switch is taking 'y' as a value
// to validate
case 200: // will check if y == 200
console.log("this is 200");
// I have not been asked to EXIT
// FOR ALL NUMBERS LESS THAN 5,
// I WANT TO PRINT "LESS THAN 5"
// FOR ALL NUMBERS GREATER THAN 5,
// I WANT TO PRINT "GREATER THAN 5"
var y = 2; // Assign y as 2
switch(y) {
case 1:
case 2:
case 3:
var y = -2; // assign -2 to y
var z = true;
switch(z) { // initialze the switch statement
// with a number
case y < 0: // y < 0 ---> true --> -2 != true
console.log("less than 0");
break;
case 100:
console.log(100);
break;
for(var schoolClass=5; schoolClass <= 12;schoolClass++) {
// INITIALIZATION -> var schoolClass=5
// CONDITION -> schoolClass <= 12
// OPERATION -> schoolClass++
console.log("I am in class ", schoolClass);
}
for(var schoolClass=5; schoolClass <= 7;schoolClass++) {
console.log("I am in class ", schoolClass);
} // this will terminate the loop once the student is in class 8
console.log("After the for loop");
for(var schoolClass=5; ;schoolClass++) { // there is no
// stopping condition in my code
console.log("I am in class ", schoolClass);
} // so the only way to stop this is to press CTRL+C
console.log("After the for loop");