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
# Difference of times in seconds | |
hours1 = int(input()) | |
minutes1 = int(input()) | |
seconds1 = int(input()) | |
hours2 = int(input()) | |
minutes2 = int(input()) | |
seconds2 = int(input()) | |
total_sec1=(hours1*60*60)+(minutes1*60)+seconds1 | |
total_sec2=(hours2*60*60)+(minutes2*60)+seconds2 |
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
0.78051 | -0.063669 | 1 | |
---|---|---|---|
0.28774 | 0.29139 | 1 | |
0.40714 | 0.17878 | 1 | |
0.2923 | 0.4217 | 1 | |
0.50922 | 0.35256 | 1 | |
0.27785 | 0.10802 | 1 | |
0.27527 | 0.33223 | 1 | |
0.43999 | 0.31245 | 1 | |
0.33557 | 0.42984 | 1 | |
0.23448 | 0.24986 | 1 |
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 pprint | |
sales_data = [{"id":1,"email":"isidro_von@hotmail.com","first":"Torrey","last":"Veum","company":"Hilll, Mayert and Wolf","created_at":"2014-12-25T04:06:27.981Z","country":"Switzerland"},{"id":2,"email":"frederique19@gmail.com","first":"Micah","last":"Sanford","company":"Stokes-Reichel","created_at":"2014-07-03T16:08:17.044Z","country":"Democratic People's Republic of Korea"},{"id":3,"email":"fredy54@gmail.com","first":"Hollis","last":"Swift","company":"Rodriguez, Cartwright and Kuhn","created_at":"2014-08-18T06:15:16.731Z","country":"Tunisia"},{"id":4,"email":"braxton29@hotmail.com","first":"Perry","last":"Leffler","company":"Sipes, Feeney and Hansen","created_at":"2014-07-10T11:31:40.235Z","country":"Chad"},{"id":5,"email":"turner59@gmail.com","first":"Janelle","last":"Hagenes","company":"Lesch and Daughters","created_at":"2014-04-21T15:05:43.229Z","country":"Swaziland"},{"id":6,"email":"halie47@yahoo.com","first":"Charity","last":"Bradtke","company":"Gorczany-Monahan","created_at":"2014-09-2 |
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 = input('Enter 1st Number : ') | |
b = input('Enter 2nd Number : ') | |
c = input('Enter 3rd Number : ') | |
a = int(a) | |
b = int(b) | |
c = int(c) | |
sum = a + b + c | |
avg = sum / 3 |
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 numpy as np | |
array_a = np.array([1,2,3,4,5]) | |
print(array_a) | |
# print([1,2,3,4,5, 'sani']) | |
print(array_a.shape) | |
array_b = np.array([[1,2,3,4,5],[1,2,3,4,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
import tensorflow as tf | |
W = tf.Variable(tf.ones(shape=(3,3)), name="W") | |
b = tf.Variable(tf.zeros(shape=(3)), name="b") | |
@tf.function | |
def model(x): | |
return W * x + b | |
out_a = model([1,0,1]) | |
print(out_a) |
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
# Python program to print the Aitken’s array upto n | |
# Input: 6 | |
# Output: | |
# [1] | |
# [1, 2] | |
# [2, 3, 5] | |
# [5, 7, 10, 15] | |
# [15, 20, 27, 37, 52] | |
# [52, 67, 87, 114, 151, 203] |
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 disableselect(e){ | |
return false | |
} | |
function reEnable(){ | |
return true | |
} | |
//if IE4+ | |
document.onselectstart=new Function ("return false") |
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
const timeUserRequest = async () => { | |
const before = await getCurrentTimeAsync() | |
await getUserDataViaHttp() | |
const after = await getCurrentTimeAsync() | |
return (after - before) | |
}; |
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
<?php | |
namespace App\Http; | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link https://gist.github.com/vluzrmos/d5682ad426525196d069 | |
*/ |