blob_id
large_string
repo_name
large_string
path
large_string
src_encoding
large_string
length_bytes
int64
score
float64
int_score
int64
detected_licenses
large list
license_type
large_string
text
string
download_success
bool
f007235cb3d5043f308291d0494415976cbe747f
jreyes81/rescuerobot
/src/range_to_string.py
UTF-8
1,364
3.234375
3
[]
no_license
#!/usr/bin/env python # Integer to String code: This contains the function to make convert the range # integers to strings as well as the degree integers to strings # # Created By: Jeovanny Reyes # Created On: March 6, 2018 # # # Raytheon Radar Guided Rescue robot # Cal State LA import sys impo...
true
1a6dd775e7a3b95b2e50f0fe0bff3192e61048e5
abhiverma23/python
/firstProject/sampleDirectory/DataTypes/Collections/list/Example/listComprehensionExample.py
UTF-8
386
4.03125
4
[]
no_license
# Author : Abhishek Verma # E-Mail : abhishekverma3210@gmail.com # Date : 15th Dec, 2016 # Title : List Comprehension Example # Description : Collecting words and converting it into capital with lower and its length. # Tested On : python 3.5.0 line = 'The quick brown fox jumps over the lazy ladki' words = line.sp...
true
e291157d26a0b4817f3937172816b0192fe8b5e4
njitsilence/dlr
/requestsloader.py
UTF-8
1,294
2.71875
3
[]
no_license
# -*- coding: utf-8 -*- import logging from openpyxl import load_workbook from vars_setting import PARMFILE_NAME, DEF_SHEET_NAME #singleton mode via decorator def singleton(cls): _instance = {} def _warper(*args, **kargs): if cls not in _instance: _instance[cls] = cls(*args, **kargs) return _instance[cls...
true
109e4460aaa1dfd359358cd021bcb9c944cc613a
ClawerULTRA/y9san9_x_Clawer_x_Pichcher_VKBOT
/Py_Project_3/speeeches.py
UTF-8
2,964
2.890625
3
[]
no_license
import random class Razgovor: @staticmethod def simple(event1): all_phrazes = ["привет", "хай", "hi", "hello", "прив", "привки", "как дела?", "кд?", "кд", "как дела", "почтовый индекс-(здесь пишете нужный адрес)", 'где находится-(здесь пишете нужный запрос)', ...
true
fe044ee3e6b0b3da4174590203df69bdc459babc
HappyTepid/AoC-2016
/day6_pt2.py
UTF-8
1,207
3.171875
3
[]
no_license
instructions = [] with open('/Users/felix/desktop/day6.txt') as f: content = f.readlines() instructions.append(content) new_i = [] for c in content: x = c.replace('\n', '') new_i.append(x) def getDistinctChars(string): dist_chars = [] for char in string: if char not in dist_chars: ...
true
d685fb347f4c351c4cb87ae4e2921007c380057c
suneeldondapati/mymldev
/mymldev/visualization/metrics.py
UTF-8
4,566
3.109375
3
[ "MIT" ]
permissive
import matplotlib.pyplot as plt import numpy as np import sklearn.metrics as mt from scipy import interp from sklearn.preprocessing import label_binarize def plot_confusion_matrix(): raise NotImplementedError def plot_roc( y_true: np.array, y_probas: np.array, title: str = "ROC Curve", plot_micr...
true
794f369e65365a7a4cbdca854fcb66d1f702a36e
mgaringoDev/stravaPythonPlayground
/myFunctions/myStravaImportData.py
UTF-8
11,519
2.984375
3
[]
no_license
import requests import urllib3 import myFunctions.myPickle as myPickle import myFunctions.myCalendarMap as myCalendarmap import myFunctions.foliumLeaflet as flmap import myFunctions.myHeatmap as myHeatmap import matplotlib as mpl import matplotlib.pyplot as plt import datetime as datetime class stravaInfo: """ ...
true
87a8bcaad387845cd409ccae0b48ae7b43488577
schaedejo00/AoC2020
/D07/d7_2.py
UTF-8
771
3.3125
3
[]
no_license
import re def countBagsIn(bagName, bags): count = 1 for inner in bags[bagName]: if len(inner)>0: inner = inner[0] print(inner, int(inner[0]), inner[1]) count = count + int(inner[0])*countBagsIn(inner[1], bags) print('bagName=', bagName, "count=", count) ret...
true
27cd8ced97fbce336453c7142df53258fbae9b00
b-odonoghue/helpful-scripts
/user-list.py
UTF-8
2,412
2.578125
3
[]
no_license
# Python script using Google Admin SDK # to loop through all pages of user info # have export to csv file from __future__ import print_function import httplib2 import os import pandas as pd from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Stor...
true
13d7ca6cf181a2fa75d58aeeb4a6602cf2f946f5
usc-bbdl/R01_HSC_NI_system
/ZZZ_other_code/nerf-py/muscle/generate_stretch.py
UTF-8
1,354
3.359375
3
[]
no_license
from numpy import * from pylab import * from decimal import * import math # generate a step-like x (list) and its dereivative dx (list) for a fixed L2. # these lists will be used to generate a force-length curve by plugging in them into shadmehr eq 3. # For passive force generation, L1 = rest_length = 1.0 (cm). def...
true
18fb5629733a911d6c7d87e3bb0beac0078847b2
harshal164/M.Tech-codes
/sem 1/programming lab/delete.py
UTF-8
850
2.65625
3
[]
no_license
import sys import string delim=['\t','\n',',',';','(',')','{','}','[',']','#','<','>',' '] oper=['+','-','*','/','%','=','!'] lines=[] with open("sample_c_input_for_2") as f: lines=f.readlines() print(lines) token=[] flag=0 for i in lines: temp = [] p=0 for j in i: if ((j not in delim and j no...
true
54a61f472189eab00e6b9d456c0b0f067ba4f735
krisaa/krishaa
/hhhh.py
UTF-8
125
2.78125
3
[]
no_license
maths ={'roll no':[1,2,3,4,],'name':['yuki','yuta','yato','yukiney']} a=maths['roll no'] b=maths['name'] print(a[0],b[0])
true
f14ee309e275f7331f5bb47a0c2e4d7400c50c6d
anirudhasundaresan/leetcode_solutions
/fall_internship_session/441_Arranging_Coins.py
UTF-8
1,088
3.578125
4
[]
no_license
#!/home/anirudha/anaconda3/bin/python ## Problem Statement ## ''' You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number of full staircase rows that can be formed. n is a non-negative integer and fits within the range of ...
true
149d09e3be3271cd295ff678ec9beb7c3c2438c4
shweta1609/SIC_HadoopAzure
/mapper.py
UTF-8
432
2.984375
3
[]
no_license
#!/usr/bin/env python """mapper.py""" import sys # input comes from STDIN (standard input) # a = ["1,abc,2,1233", "2,afc,3,1234","3,asc,2.4,1243","4,acc,5,1255","5,aac,4,1273"] infile = sys.stdin next(infile) next(infile) for line in infile: # for line in a: line = line.strip() line = line.split(",") ...
true
fd53dacb87b62d54dae0afd6a359190d85243fe4
ShahradX/Term2
/example_def01.py
UTF-8
213
3.765625
4
[]
no_license
from turtle import Turtle, done t = Turtle() def square(): l = 1 while l <= 4: t.forward(100) t.left(90) l += 1 square() t.penup() t.goto(100, 200) t.pendown() square() done()
true
ad0e5afa94f291c91f7178dc1449a60ff4c77a82
Muthuuk/maximum_power_info_ratchet
/src/noisy_analysis/propagators.py
UTF-8
7,633
2.578125
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 #@author: jlucero #date created: Fri Mar 19 22:08:03 PDT 2021 # purpose: define propagators needed for analysis of noisy system from numpy import ( pi, exp, sqrt, sinh, sign, abs, logical_and, where, finfo, linspace, logspace, log, cosh, tanh ) from scipy.integrate import trapz from...
true
86781be59974edf365f487a0b9a9cd3b0d5303fc
HelloYeew/helloyeew-lab-computer-programming-i
/Parking Fee.py
UTF-8
194
3.734375
4
[ "MIT" ]
permissive
# Enter parking time in minutes: 30 # Parking fee is 25 baht. import math time = int(input("Enter parking time in minutes: ")) fee = (math.ceil(time/60))*25 print(f"Parking fee is {fee} baht.")
true
b92e591063c87878760377fb68cd5794f4d6e228
Astroua/M33_NOEMA
/imaging/line_postprocess.py
UTF-8
1,230
2.515625
3
[ "MIT" ]
permissive
''' Create a version of the CO cube at the same resolution as the IRAM data ''' from spectral_cube import SpectralCube import astropy.units as u from astropy.convolution import Gaussian1DKernel import numpy as np from paths import noema_data_path, iram_data_path # Load the cube cube = SpectralCube.read(noema_data_p...
true
1174422e2fb110af7fad91ecc25f00f9f319d680
WilyMayo/Lc101
/lc101/crypto/vigenere.py
UTF-8
727
3.96875
4
[]
no_license
from helpers import alphabet_position, rotate_character def encrypt(text,key): cipher = '' l = len(key) idx = 0 #to access key characters for i in text: if i.isalpha(): #If the character is a alphabet then only rotate it otherwise leave it as it is cipher += rotate_c...
true
72d0bcbe7ca40d8695ee6815c41fd58f3ad2171c
sy1wi4/ASD-2020
/geometric algorithms/point_location.py
UTF-8
610
3.609375
4
[]
no_license
''' Położenie punktu p1 wzgledem p2 w układzie współrzędnych - liczymy iloczyn wektorowy wektorów od 0 do p1 i od 0 do p2, jeżeli dodatni to zgodnie z ruchem wskazówek zegara, ujemny - przeciwnie, a równy zero oznacza współliniowość iloczyn wektorowy to pole powierzchni równoległoboku (0,p1,p2,p1+p2) - wyznacznik maci...
true
52b26c5e1c3a48eb6128bda512ede5108d3c6150
romeorizzi/turingarena-numerability-theory
/yielding_a_not_enumerated_property/evaluator.py
UTF-8
1,801
2.84375
3
[]
no_license
import random import turingarena as ta NUM_MACHINES = 100 for tc in range(7): memoM = [] for i in range(0,NUM_MACHINES): memoM.append([random.randint(0, 1) for _ in range(0,NUM_MACHINES)]) for n in range(0,i+1): memoM[i][n] = 1 - memoM[n][n] if tc % 3: random.shuffle...
true
6864a3a383559bb0918c65923526125edce735b5
kaizenc/stuy-softdev-2
/hw08/listcomp.py
UTF-8
593
3.359375
3
[]
no_license
def union(listA, listB): return listA + [x for x in listB if x not in listA] print union([1,2,3],[2,3,4]) def intersection(listA,listB): return [x for x in listB if x in listA] print intersection([1,2,3],[2,3,4]) def setDiff(listA,listB): return [x for x in listA if x not in listB] print setDiff([2,3,4...
true
6cda3f8961a3179e39c6108380231976ae9b6fa8
Michael231234/Web_Mining
/ass2.py
UTF-8
1,331
2.921875
3
[]
no_license
import requests from bs4 import BeautifulSoup import csv import re def get_top(url): r = requests.get(url=url) c = r.content soup = BeautifulSoup(c) ls = [] rs = [] ds = soup.select('table.wikitable>tbody>tr>td:nth-child(1)') for d in ds: ls.append(d.get_text().replace('[110]', '')...
true
b5b8542d56707e8a764b05c6cc4d4042ef6d9d01
dwaipayan05/GoogleImages-DataSetsCreator
/MergeFiles.py
UTF-8
402
2.578125
3
[]
no_license
import shutil import time import glob outfilename = 'MasterURL' + ".txt" filename = glob.glob('*.txt') with open(outfilename, 'wb') as outfile: for filename in glob.glob('*.txt'): if filename == outfilename: # don't want to copy the output into the output continue with op...
true
130bec70f58bc4dcec0d9067a9b7b5dde22d4916
sassoftware/python-swat
/cicd/get-host.py
UTF-8
1,868
3.6875
4
[ "Apache-2.0" ]
permissive
#!/usr/bin/env python ''' Return a random hostname from the specified collection of names This utility is used to randomly choose a hostname from a list or names with a numeric range. It allows you to put bracketed lists or ranges of values in one or more places in the hostname to enumerate the possibilities. For exa...
true
dab393b33357bbd606b1d3c984f72e13461cdd17
vladimirlevchenko/Solving_ODE_doublePendulum
/test_pendulum.py
UTF-8
1,053
3.078125
3
[]
no_license
#!/usr/bin/python import nose.tools as nt from pendulum import Pendulum from math import pi from numpy import linspace, add, power def test_stationary(): var = Pendulum(l=2.2) theta0 = 0 omega0 = 0 y0 = [theta0, omega0] y = var(0, y0) nt.assert_equal(y, (0.0, 0.0)) def test_call(): var = Pendulum(l=2.2) thet...
true
fd16310f67e9938e949643a7910b807fa5820a22
drewhendrickson/md5-based-duplicate-analysis
/compare_against_dict.py
UTF-8
2,591
3.171875
3
[]
no_license
#!/usr/bin/python import pickle from datetime import datetime from hash_fcns import * # Prints the hash digests for all contents of a directory. def checkHashDictonaryForDirectoryContents(directory, dictionary, dup_file, compare_file, non_dup_file): d = {} dup = 0 non_dup = 0 multi_non_dup = 0 ...
true
6d2f63de847c36df81d0deb1a9d34a94ff3b6f8b
dwtcourses/emora_stdm
/emora_stdm/test_state_transition_dialogue_manager/test_composite_dialogue_flow.py
UTF-8
8,953
2.515625
3
[]
no_license
import pytest from emora_stdm import DialogueFlow from emora_stdm.state_transition_dialogue_manager.composite_dialogue_flow import CompositeDialogueFlow def test_composite_df_working(): df1 = DialogueFlow('A', initial_speaker=DialogueFlow.Speaker.USER) df1.add_state('A', 'X') df1.add_state('X') df1....
true
683f8a6e614e0759152350ff694dbb0369b142c4
firefeather/PIController
/spider/news.py
UTF-8
881
2.609375
3
[]
no_license
# -*- coding: utf-8 -*- # 爬取feebuf安全新闻 from fetch import get import re url = 'https://www.freebuf.com/clipped?pg=1' headers = {'User-Agent':'Mozilla/5.0 (Windows NT 6.1; Win64; x64) \ AppleWebKit/537.36 (KHTML, like Gecko) \ Chrome/68.0.3440.106 Safari/537.36'} def getNews(): res = get(url,head...
true
ce5ecefd12caadd97d9aec4ecde02e4e848a5b2f
Aasthaengg/IBMdataset
/Python_codes/p04034/s995336108.py
UTF-8
331
3.0625
3
[]
no_license
n, m = list(map(int, input().split())) cnt = [1] * n has_red = [False] * n has_red[0] = True for i in range(m): a, b = list(map(int, input().split())) has_red[b - 1] = has_red[b - 1] or has_red[a - 1] if cnt[a - 1] == 1: has_red[a - 1] = False cnt[a - 1] -= 1 cnt[b - 1] += 1 print(has_red.co...
true
f650cba01b9104e01388ae4b856624c005e700b1
mbarall/splinefit
/splinefit/bin/sfproj
UTF-8
2,609
2.859375
3
[]
no_license
#!/usr/bin/env python """Project boundary curve onto best fitting plane Usage: sfproj <input> <output> -options=... input file Pickle binary file to read (.p) output file Pickle binary file to write (.p) Options: -savefig path Save figures -showfig bool Show figures (pauses application)""...
true
876c4642fc223601686ce0d2496e49b8cf33cd3f
Leolibin/quantitative_finance
/tools/book_contrast_price/use_requests.py
UTF-8
402
2.53125
3
[]
no_license
#!/usr/bin/python # -*- coding:utf-8 -*- # @Time : 2019/8/8 16:59 # @Author : libin(leoli) # @File : use_requests.py import requests def get_book(sn): url = 'http://search.dangdang.com/' rest = requests.get(url, params={ 'key': sn, 'act': 'input' }) print(rest.text) print(rest....
true
701fac2eabc3b6f4b8e84a7aa4ff43a8aa319b33
tonianev/data-structures
/src/binary_search_tree.py
UTF-8
686
3.609375
4
[ "MIT" ]
permissive
class Node: def __init__(self, data): self.data = data self.left = None self.right = None class BinarySearchTree: def __init__(self): self.root = None def insert(self, data): if not self.root: self.root = Node(data) else: self._insert...
true
c1f74409ebfdebd40e5893103d04f909a9d151da
shbaydadaev/him_ws
/carpack_controller/scripts/key_get( sbai).py
UTF-8
4,458
3
3
[]
no_license
#!/usr/bin/env python #-*-coding:utf-8-*- # Copyright (c) 2019, The Personal Robotics Lab, The MuSHR Team, The Contributors of MuSHR # License: BSD 3-Clause. See LICENSE.md file in root directory. import atexit import os import signal from threading import Lock from Tkinter import Frame, Label, Tk import rospy from ...
true
b5df4d74c71135e1af67fa4968b78cd945f3da21
SonpKing/CNN2SNN
/detection/selective_search.py
UTF-8
7,195
2.96875
3
[]
no_license
#!/usr/bin/env python ''' Usage: ./ssearch.py input_image (f|q) f=fast, q=quality Use "l" to display less rects, 'm' to display more rects, "q" to quit. ''' import sys import numpy as np import cv2 as cv from util.util import Timer class Camera: def __init__(self): self.cap = cv.VideoCapture(0) ...
true
42b007dff41b09360f73f82dea1ab02050fdd0cd
senakicir/ntds_project
/visualization.py
UTF-8
1,801
2.8125
3
[ "MIT" ]
permissive
import numpy as np import pdb import pygsp as pg import matplotlib.pyplot as plt import os # Your code here. def plot_gt_labels(graph, labels, name): graph.plot_signal(labels) plt.title('Groundtruth Labels') name += 'gt_clusters.png' plt.savefig("visualizations/" + name) plt.close() ## Plots the ...
true
9223b3adf36a2fce22ebf39d530f3abc3ba29ec2
BennettDixon/shutterstock_keywords
/main.py
UTF-8
1,045
2.890625
3
[ "MIT" ]
permissive
#!/usr/bin/env python3 from models.keyword_searcher import KeywordSearcher from models.media_result import MediaResult from models.result_collection import ResultCollection def main(): """entry point for program """ search_term = "california sky" for pn in range(0, 5): searcher = KeywordSear...
true
81ea10412c158bbc487e7e9d2e2a55c6c866fa83
MalayNagda/Corner-Detection-and-Least-Squares-Optimization
/corner_detection_lso.py
UTF-8
4,909
2.75
3
[]
no_license
import cv2 import numpy as np from sklearn.metrics import mean_squared_error from math import sqrt from scipy import ndimage #Black blank image blank_image = np.zeros(shape=[300, 300,3], dtype=np.uint8) num_rows, num_cols = blank_image.shape[:2] #pts=np.array([[0,0],[300,0],[300,300],[0,300]],np.int32) #cv2.fillPoly...
true
abe4db8f123501c254ab6bb0c779f247c130c346
OneRandomMikey/Python
/Lab/lab03.py
UTF-8
554
3.6875
4
[]
no_license
odds_sum=0 evens_sum=0 odds_count=0 evens_count=0 total_int_count=0 while True: inp=int(input('Input a integer(0 terminaes):')) if inp==0: break elif inp<0: print ('Error,please enter a positive number') continue elif inp%2==0: evens_count+=1 evens_sum+=inp el...
true
f97ab5455ec764478efcd4e69857a09a42dcfab0
Cbkhare/Challenges
/LC_targetSum.py
UTF-8
948
2.953125
3
[]
no_license
class Solution: def sum(self, i,s): if (i,s) in self.db: return self.db[(i,s)] if i==self.l-1: if s==self.S: return True, 1 else: return False, 0 else: count = 0 res = self.sum(i+1, s+self....
true
8ab3f7463f2e54a8a2ea762a470ce2c4bcbe329b
RomainGirard2/ML
/Lab_Gaussian_Mixture_Model/GMM.py
UTF-8
3,835
2.796875
3
[]
no_license
# -*- coding: utf-8 -*- import random import math import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LogNorm """def prob(sigma,mu,phi,x): (1 / (((2 * math.pi)) * math.sqrt(np.absolute(np.linalg.det(sigma))))) * math.exp( (-0.5) * np.transpose(x - mu).dot(np....
true
0ff8715a8c44d9837db64d57f7f953ab8b1f3bc5
wedataintelligence/Hybrid_Approach_To_Planetary_Gearbox_Prognostics
/notebooks/15.0-MCMC_2DOF.py
UTF-8
2,322
2.609375
3
[]
no_license
import numpy as np import matplotlib.pyplot as plt import pymc3 as pm import src.features.second_order_solvers as s import theano.tensor as tt from theano.compile.ops import as_op if __name__ == '__main__': @as_op(itypes=[tt.dscalar], otypes=[tt.dvector]) def mu(m1): M = np.eye(dim) M[0, 0] = ...
true
3841af5005b4e1b067708cc899f5396bed8bfe84
Jordhan-Carvalho/bot-python-mmo
/timing_bot/main.py
UTF-8
4,042
3.109375
3
[]
no_license
import time import pyautogui DELAY_BETWEEN_COMMANDS = 1.00 def main(): countdownTimer() initializePyAutoGUI() goToMerchant() tradeWithMerchant() returnToShip() # reportMousePosition() flyToEarthStation() print("Done") def initializePyAutoGUI(): # Initialized PyAutoGUI # When f...
true
57ad83689c84e5915ad2201bb705b4125d7033e4
devarshi16/TerminalWelcome
/src/main.py
UTF-8
5,230
2.84375
3
[ "MIT" ]
permissive
from __future__ import print_function import argparse from .pokemons import pokemons from .one_liners import one_liners import configparser as cp from termcolor import colored import random import os def main(): parser = argparse.ArgumentParser(description = 'Display a Custom Message, a Pokemon ASCII Art and a Ran...
true
a2bd05f8c1eabd3f902be8cdd8d0fd1f67546ffb
fenhao/Learn
/Image/07_blur.py
UTF-8
1,164
3.015625
3
[]
no_license
# -*- coding: utf-8 -*- # --- # @Time: 2021/6/27 # @File: blur.py # @Author: Daqing Shi # @Desc: Function of this file # @update: Record important updates # --- import cv2 as cv import numpy as np def blur_demo(image): """ 图像均值模糊操作,用于去噪 :param image:待处理的图像 """ dst = cv.blur(image, (5, 5)) cv.i...
true
8c9012d905cfd10997efc5c61495912d97b01f91
MikhailGornostaev/PythonBasics
/HW4_2.py
UTF-8
608
3.859375
4
[]
no_license
yourMoney = int(input('Введите количество денег: ')) print('Ты ввёл', yourMoney, '(RUB)') toUsd = yourMoney / 73 toEur = yourMoney / 86 toChf = yourMoney / 79 toGbp = yourMoney / 101 toCny = yourMoney / 11 print('Конвертированная сумма в USD =', int(toUsd)) print('Конвертированная сумма в EUR =', int(toEur)) print(...
true
336f998f1087ea04e08d18ae6ac1329dfd391ab8
abrarbhat/PythonPra
/sum_any_no.py
UTF-8
83
3
3
[]
no_license
def sums(*t): sum=0 for i in t: sum+=i print sum sums(2,3,4,5,10,20,30,40)
true
07d518b6220ff3e653e6669eb72fc1328aa4e224
Aasthaengg/IBMdataset
/Python_codes/p03085/s593364227.py
UTF-8
61
2.671875
3
[]
no_license
k = input() m = {'A':'T','C':'G','G':'C','T':'A'} print(m[k])
true
a024b4562670f4de0e192157ff121952aadb081d
MisaelAugusto/computer-science
/programming-laboratory-I/v3xs/CF.py
UTF-8
133
3.140625
3
[ "MIT" ]
permissive
temperatura_celsius = float(raw_input()) temperatura_fahrenheit = 1.8*temperatura_celsius + 32 print "%.1f" %temperatura_fahrenheit
true
a376f0960bc2a89a617cf1ff73889615f6e83bfc
h4hany/yeet-the-leet
/algorithms/Hard/1001.grid-illumination.py
UTF-8
2,320
3.53125
4
[]
no_license
# # @lc app=leetcode id=1001 lang=python3 # # [1001] Grid Illumination # # https://leetcode.com/problems/grid-illumination/description/ # # algorithms # Hard (35.97%) # Total Accepted: 8.7K # Total Submissions: 24.2K # Testcase Example: '5\n[[0,0],[4,4]]\n[[1,1],[1,0]]' # # Given a grid of size N x N, each cell of ...
true
2c28d16659c99e8c52d3e39a09be657c64ce2241
GustavoCunhaLacerda/URI
/URI/Python/Intervalo.py
UTF-8
326
3.65625
4
[]
no_license
valor = float(input()) if ( (valor>25)and(valor<=50) ): print("Intervalo (25,50]") elif ( (valor>=0)and(valor<=25) ): print("Intervalo [0,25]") elif ( (valor>75)and(valor<=100) ): print("Intervalo (75,100]") elif ( (valor>50)and(valor<=75) ): print("Intervalo (50,75]") else: print("Fora de inter...
true
032991a1e122761a331413aa5d132f8a3b8d3ee5
iemmafish/UdacityOSMProject
/auditphonenumbers.py
UTF-8
2,020
2.96875
3
[]
no_license
from collections import defaultdict import re import xml.etree.cElementTree as ET import pprint expected = [] #get the phone number from the XML file def is_phonenumber(elem): return (elem.attrib['k'] == "phone") street_type_re = re.compile(r'\b\S+\.?$', re.IGNORECASE) def audit_street_type(street_...
true
a6b27d1245cca06d51378c4ca3857cddd377bc4f
chrismgeorge/PyMaya
/example2.py
UTF-8
1,261
2.65625
3
[]
no_license
from Cube import Cube from PyMaya import rgb import maya.cmds as cmds from random import * screenObjects = cmds.ls("pCube*", "blinn*") cmds.callbacks(clearAllCallbacks = True) if (len(screenObjects) > 0): cmds.delete(screenObjects) def getDataFromFile(fileName): with open(fileName, 'r') as f: data = eval(...
true
75dfe9dce4b26a525c35a88293e6bccd2fef27e4
mrmenand/Py_transaction
/Algorithms/Python/sorts.py
UTF-8
2,487
3.78125
4
[]
no_license
import random class Sorts(object): def bubble_sort(self, alist): """冒泡排序""" for i in range(len(alist) - 1, 0, -1): for j in range(i): if alist[j] > alist[j + 1]: alist[j], alist[j + 1] = alist[j + 1], alist[j] def insert_sort(self, alist): ...
true
b0078133a42938744be1f528189a3d0620393367
Mstfa-Ali/brute-force-addressFormatting-1
/merge.py
UTF-8
1,953
2.78125
3
[]
no_license
from compare import * import numpy as np # These cutoff's are static calculated based on the provided dataset for optimal performance Cutoff1=85 Cutoff2=95 # Merges similar fields using fuzzy score def merge(x): building=x[0] street=x[1] landmark=x[2] locality=x[3] vtc=x[4] distr...
true
241a5605cbdbbbfe3abac8b4d016427f360d96e1
KateZi/Advent_of_Code
/Day 3.py
UTF-8
1,350
3.4375
3
[]
no_license
import re def populate_path(wire): path = {(0, 0): 0} x = 0 y = 0 step = 0 for inst in wire: temp = re.compile("([a-zA-Z]+)([0-9]+)") dir, steps = temp.match(inst).groups() steps = int(steps) h = 1 if dir == 'R' else -1 if dir == 'L' else 0 v = 1 if dir =...
true
42c94de8c1413c7a08f8f0a973cae1e43b693b5d
gemosant/programming_lab
/hw_2/170401052_hw_2.py
UTF-8
2,027
3.21875
3
[]
no_license
import subprocess subprocess.call('pip install pandas', shell=False) import pandas as pd # .csv uzantılı dosyayı oku df = pd.read_csv('input_dir_name/input_hw_2.csv', delimiter = ';') # okunan csv dosyasını listeye dönüştür data = [list(row) for row in df.values] # ihtiyaç duyulan kolon data[3] olduğu i...
true
a8ff1168346e789f621358876562b1b5e56868dd
SirHawbly/minpy-chess
/move_functions.py
UTF-8
3,051
3.328125
3
[]
no_license
# ----- import chess_types as c_types # ----- def in_bounds(x, y, x_max, y_max): if ((0 <= x and x < x_max) and (0 <= y and y < y_max)): # print('in bounds '+str(x)+" "+str(y)) return True else: # print('out of bounds '+str(x)+" "+str(y)) return False # ----- def scan(arr, x,y, dx,dy, short, cap, clr): ...
true
0bad321e02d0164e41019dd34555da22d6ab2d24
advancer-debug/web-
/setup/execution/execute.py
UTF-8
393
2.78125
3
[]
no_license
''' Helper for all the execute functions from the execute pages ''' import subprocess def execute_ping(ip_address): ''' A very vulnerable execute script for pinging an ip address ''' output = list() tempoutput = subprocess.check_output("ping " + ip_address, shell=True, universal_newlines=True) ...
true
2a719e236ae6f3e69e5b8d6540568c35fdf52748
pingrunhuang/CodeChallenge
/leetcode/80.py
UTF-8
1,064
3.859375
4
[ "MIT" ]
permissive
''' 80. Remove Duplicates from Sorted Array II Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. ''' class Solut...
true
3840483d3ec355b535e96f84f21267415047ecc1
dr-dos-ok/Code_Jam_Webscraper
/solutions_python/Problem_118/770.py
UTF-8
1,512
3.09375
3
[]
no_license
#!/usr/bin/env python import sys import math def check_region(nd, rmin, rmax): #end exclusive n = 0 (nd1,nd2) = (nd//2, nd % 2) def check_num(num): if (num >= rmin and num < rmax): sq = str(num ** 2) if (sq == sq[::-1]): return True return False ...
true
b5dd038f77a2f3be8669b9240667241b386f9e2d
ncguilbeault/zebrafish_behaviour_tracking
/timer_thread.py
UTF-8
546
2.96875
3
[]
no_license
'''Software Written by Nicholas Guilbeault 2018''' # import python modules import time from PyQt5.QtCore import * class TimerThread(QThread): time_signal = pyqtSignal(float) def __init__(self, sleep_time = 0.5): super(TimerThread, self).__init__() self.running = True self.sleep_time ...
true
7e5fd17559fdef74392a280071bb84624eaf2e33
adventofcode2017/adventofcode2017
/problems/day_11.py
UTF-8
2,332
3.515625
4
[]
no_license
#!/usr/bin/env python3 import argparse import collections import pathlib def get_arguments(): # Arguments parser = argparse.ArgumentParser() parser.add_argument('--input_fp', required=True, type=pathlib.Path, help='Problem input filepath') # Validate inputs args = parser.parse_args() ...
true
fd8a6f5470a97033bc63779b2db5addd7ad5308d
duducosmos/bias-splus
/bias_splus_v02.py
UTF-8
11,342
2.640625
3
[]
no_license
#! /usr/bin python # -*- coding: utf-8 -*- """ Name: bias_splus Version 0.3 Description: Provide statistical analysis for s-plus bias images over periods of time Author: Walter Santos Created on: Set 12th 2016 Last Updated: Nov 26th 2016 Latest Changes: - Include the acceptable percentage (above which the bias is flag...
true
39a2881d19b817857ce3268a02fc3e31180d1f85
BRAND0JESUS/ML_tutorials_in_Python
/Clases Platzi/Proyect_Estadist.py
UTF-8
1,710
3.109375
3
[]
no_license
#%% import pandas as pd import numpy as np import seaborn as sns import os os.chdir('/Users/Brando/Desktop/VS Code') os.getcwd() # print(os.listdir('.')) # que elementos estan contenidos df = pd.read_csv('train.csv') df.columns # descripcion para definir la calidad de var df.isna().sum(axis=0)/len(df) # conte...
true
de6751397ecf2570729a1a864ee248bcac0039c1
chaneyzorn/LeetCode-Python
/scratchs/ordered/shell_sort.py
UTF-8
470
3.828125
4
[]
no_license
def shell_sort(items): if not items: return items length = len(items) gap = length while gap >= 1: gap >>= 1 for i in range(gap, length): j, temp = i, items[i] while j >= gap and items[j - gap] > temp: items[j] = items[j - gap] ...
true
965d61cc79dc8a4325f7a47b61647da41d8a1b84
j-szulc/Btrfs-autosnap
/autosnap.py
UTF-8
1,699
2.6875
3
[]
no_license
#!/usr/bin/python3 import snap import glob import time class Snapshot: def __init__(self,sname,sdir): self.sname=sname self.sdir=sdir def delete(self): path=self.sdir+"/"+self.sname.str() snap.snapdelete(path) @staticmethod def valid(path): return snap.Snapname.valid(path.rsplit("/",1)[1]) @staticm...
true
fdcd38bb5caa5035fef5289936155550638c5376
Diegodesouza7/Python-Conceitos-Exercicios
/Exercicios/ex015.py
UTF-8
408
3.84375
4
[]
no_license
""" Escreva um programa que pergunta a quantidade de Km percorridos por um carro alugado e a quantidade de dias pelos quais foi alugado Calcule o preço a pagar, sabendo que o carro custa R$60 por dia e R$50,15 por Km rodado """ dias = int(input('Quantos dias alugados ? ')) km = float(input('Quantos Kms rodados ? ')) ...
true
14eb5408cdbc37a302cafa864f3367bf446d6f7f
PradeepTammali/Hacker-Rank
/HourRank 27/Impressing the Boss.py
UTF-8
1,012
2.921875
3
[]
no_license
#!/bin/python import os import sys def canModify(a): negative_element_count = 0 for i in range(len(a[1:])): if i == 0: if a[i] > a[i+1]: a[i] = a[i+1] - 1 negative_element_count += 1 elif not (a[i-1] <= a[i] <= a[i+1]): if not (a[i-1] <= ...
true
67c30995f635cd590a3834a5c56acca2979335bd
enriquedlh97/algosDS
/tests/test_minimum_waiting_time.py
UTF-8
1,044
2.921875
3
[]
no_license
import os import sys import pytest from algosds.problems.categories.greedy_algorithms.minimum_waiting_time import \ minimum_waiting_time, \ minimum_waiting_time_original myPath = os.path.dirname(os.path.abspath(__file__)) sys.path.insert(0, myPath + '/../') tests = [([3, 2, 1, 2, 6], 17), ([2, 1, ...
true
0073892c6c0f595fc9b900d5506b5009d2d77ea4
CarlottaCharlie/giornatamica
/add_user.py
UTF-8
1,095
2.890625
3
[ "MIT" ]
permissive
import argparse from app import db from models import User import getpass if __name__ == "__main__": parser = argparse.ArgumentParser(description='Test the basic VNA functionality.') parser.add_argument('--username', '-u', help='Name of the user', type=str, required=True) parser.add_argument('--email', '...
true
c194f08b216c54e8dd0470e895ad657b17f71f89
fizgi/SlicingDicingFiles
/venv/app.py
UTF-8
1,297
3.671875
4
[]
no_license
""" A program to calculate the average of spam confidence in a given list of emails author: Fatih IZGI date: 05-Mar-2020 version: python 3.8.1 """ from typing import List, IO file_name: str = input("Enter the file name: ") values: List[float] = [] # to store the confidence values try: # to open t...
true
7da850d2c8cbe0ba90c3222e972fecb92c14b359
JosephLevinthal/Research-projects
/5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4145/codes/1800_2566.py
UTF-8
376
2.890625
3
[]
no_license
from numpy import* x=zeros(6,dtype=float) f = array(eval(input("vetor de faltas: "))) for i in range(size(f)): if(f[i]==2): x[0]=x[0]+1 elif(f[i]==3): x[1]=x[1]+1 elif(f[i]==4): x[2]=x[2]+1 elif(f[i]==5): x[3]=x[3]+1 elif(f[i]==6): x[4]=x[4]+1 elif(f[i]==7): x[5]=x[5]+1 for k in range(size(x)): x[k]...
true
7a16206878493a8438f4c98098f1a11b90a3cf3e
ThacherObservatory/observatory
/old/Altitude_Time.py
UTF-8
2,095
3.0625
3
[]
no_license
# -*- coding: utf-8 -*- """ Created on Sun Mar 27 19:43:17 2016 @author: sara """ import matplotlib.pyplot as pl import datetime import numpy as np import ephem from scipy import interpolate # Sara wins!!!! def riseset(year, month, day, position): thob = ephem.Observer() thob.long = ephem.degrees("-119....
true
a63de5a34eebc4d07abf111c6dd515f4e6384e46
marcobenito/proyecto4-uem
/app/src/models/train_model.py
UTF-8
2,333
2.65625
3
[]
no_license
from ..data.prepare_data import prepare_dataset from ..evaluation.evaluate_model import evaluate_model from sklearn.ensemble import RandomForestClassifier from app.src.utils.model_utils import * from datetime import datetime def training_pipeline(path, model_info_db_name='cloudant-db'): """ Función para...
true
1f5cb1649d251c44766bbabfeaa462966d4f8702
CEA-COSMIC/ModOpt
/modopt/math/stats.py
UTF-8
6,804
3.515625
4
[ "MIT" ]
permissive
# -*- coding: utf-8 -*- """STATISTICS ROUTINES. This module contains methods for basic statistics. :Author: Samuel Farrens <samuel.farrens@cea.fr> """ import numpy as np try: from astropy.convolution import Gaussian2DKernel except ImportError: # pragma: no cover import_astropy = False else: import_as...
true
7939c2e08cfc02f738acf09c95e081670fa59f0d
PMaC3/Snake
/Snake.py
UTF-8
5,231
3.140625
3
[]
no_license
import numpy import pygame import random pygame.init() GAME_WIDTH = 25 GAME_HIEGHT = 25 SQUARE_SIZE = 20 SPEED = 10 START_LENGHT = 1 LINE_SIZE = 1 SNAKE_COLOUR = (0, 0, 0) FOOD_COLOUR = (200, 0, 0) GRID_COLOUR = (0, 100, 0) SCREEN_COLOUR = (255, 255, 230) FONT = pygame.font.SysFont("momospace", 35) def draw_square(s...
true
3de2fd6c48fc728bd81d3fa8bac219b86c1db511
marinapts/venus_volcanoes
/visualize_components.py
UTF-8
5,789
2.6875
3
[]
no_license
from reduce_dimensionality import reduce_dims, load_data, normalize_ds from data_loader import DataLoader import numpy as np import matplotlib.pyplot as plt from sklearn.manifold import TSNE import seaborn as sns colordict = {0: 'navajowhite', 1: 'midnightblue', 2: 'royalblue' , 3: 'cornflowerblue', 4: 'lightskyblue'...
true
73469697094c6e23cac957cba8a8cec5dd70934b
PeaWagon/timeline_code
/old_versions/timelineMain_v3.py
UTF-8
4,040
2.65625
3
[]
no_license
#!/usr/bin/python3.5 # Python code to collect residue and file data from timeline tml file. # JEN # Tuesday 21st June, 2016 # Wednesday 6th July, 2016 # Monday 22nd August, 2016 # Version 3 ############################################################################ # MAIN PROGRAM ...
true
39da9791b2bf0464f9cdda3c7fbc7137b3ad31e7
Aasthaengg/IBMdataset
/Python_codes/p03361/s431073600.py
UTF-8
1,205
2.59375
3
[]
no_license
import math import numpy as np import sys import os from operator import mul sys.setrecursionlimit(10**7) def _S(): return sys.stdin.readline().rstrip() def I(): return int(_S()) def LS(): return list(_S().split()) def LI(): return list(map(int,LS())) if os.getenv("LOCAL"): inputFile = basename_without_ext = os....
true
88c53a500d1b488eeb64de1f715da74d3e19d94f
Arko07-quanta/PyCampaign20
/pycampaign02[variables].py
UTF-8
350
3.9375
4
[ "Unlicense" ]
permissive
# Todays Topic: # 1. String Concatenation # 2. Variables # 3. Sting Concatenation # 4. Manipulating Code # 5. User Interaction # 6. Challange # ----------Code Starts From Here--------------------- name = input("Tell me your name\n") age = input("Enter your age: ") print(name.title() + ...
true
83bed8e924b9abd329ab351979932430af5d4a51
dylanhayslip/Simple-High-Low-Game
/hlGameCode.py
UTF-8
1,156
3.328125
3
[]
no_license
from random import randrange rn = (randrange(1, 10)) rnTwo = (randrange(1, 10)) finRn = abs(rn - rnTwo) hhr = "higher" or "Higher" lwr = "lower" or "Lower" hh = "high" or "High" ll = "low" or "Low" userAns = input("Would you like a number? ") if userAns == "yes": userHl = input("Will the next number be higher or ...
true
eb545df64561c00e062788ed38ad6e45ea43d6e8
zhaosjason/practice
/acm/oct1/d/main.py
UTF-8
437
3.15625
3
[]
no_license
import math vals = [float(x) for x in raw_input().split()] leak = vals[0] obs = vals[-1] if leak > obs: print "%.6f %.6f" % (obs, obs) else: k = vals[1] t1 = vals[2] t2 = vals[3] # Quadratic equation for rainfall rate b = obs + k * t1 + k * t2 rate = b + math.sqrt(b**2 - 4 * t1 * leak * k) rate /= 2 * t1 ...
true
86194859f7f6199b64dcb37faae0afc153766a07
Aleksandr-Kolbas/training_python_scripts
/fib.py
UTF-8
237
4.40625
4
[]
no_license
def fib(x): """Calculates the fibonacci number""" if x == 0 or x == 1: return 1 else: return fib(x - 2) + fib(x - 1) # recursion print('Fibonacci number is: ', fib(int(input('Enter a positive number: '))))
true
251b791d16408e898b86772c6d5dae12c9f6922f
noanner/PBC_group92
/總結算(舊).py
UTF-8
2,707
2.953125
3
[]
no_license
import tkinter as tk import tkinter.font as tkFont class Window(tk.Frame): def __init__(self): tk.Frame.__init__(self) self.grid() self.createWidgets() def createWidgets(self): f1 = tkFont.Font(size = 20, family = "微軟正黑體") f2 = tkFont.Font(size = 14, family = "微軟正黑體")...
true
4309affe5f08cfe6306f72dde76d2a529decf4fa
vvk2048/pos-tagging
/pos_tagging/2.py
UTF-8
2,144
3.375
3
[]
no_license
#----------------week2---------------- from matplotlib import pyplot as plt dictionary = {} outputfile = open("2.txt","w") inputfile = open("1.txt") for line in inputfile: for word in line.split(): if word in dictionary: dictionary[word] +=1 else: dictionary[word] =1 inputfile.close() length = len(dictio...
true
53012172964cb3269a658d479d809eafd022c9c7
yngwieli10/password-try
/password-try.py
UTF-8
224
3.78125
4
[]
no_license
password = 'a123456' n = 3 while n>0: psd = input('請輸入密碼:') if psd == password: print('登入成功') break else: n = n-1 print('密碼錯誤你還有', n,'次機會')
true
28d008e36872efe6d493e13f6420c42062f5a9fe
LinkMarco/PrototypeClustering
/src/preprocessing/preprocessing_with_textacy.py
UTF-8
4,719
3.109375
3
[]
no_license
""" This module contains useful preprocessing steps from the library Textacy https://github.com/chartbeat-labs/textacy For fruther informations to the preprocessing methods see: https://github.com/chartbeat-labs/textacy/blob/master/textacy/preprocess.py """ from textacy import preprocess from .preprocess import Prepr...
true
cb7278df13ca4af5b89c617d38df4d2ef15fc1e5
matheuscordeiro/random-problems
/Cracking the Coding Interview/Cap 16/16.17_contiguous_sequence.py
UTF-8
358
3.59375
4
[]
no_license
def contiguous_sequence(array): max_value = sum_value = 0 for value in array: sum_value += value if sum_value > max_value: max_value = sum_value elif sum_value < 0: sum_value = 0 return max_value if __name__ == "__main__": array = [2, -8, 3, -2, 4, -10]...
true
9134c6ee5c7c60567574dfee9a373f696f9eaf04
zhangshuaizxc/TCN
/torchsketch/utils/general_utils/reset_dir.py
UTF-8
183
2.765625
3
[ "MIT" ]
permissive
import os import shutil def reset_dir(folder_path): if not os.path.exists(folder_path): os.mkdir(folder_path) else: shutil.rmtree(folder_path) os.mkdir(folder_path)
true
9a618047e797069bd31267451bcb32b44c6bd30c
SilasYa/2021_SU_Algorithms
/HW/hw03/106. 从中序与后序遍历序列构造二叉树.py
UTF-8
1,413
3.59375
4
[]
no_license
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode: """ inorder =...
true
38631746010f76c0724e450794c3ac411bb99331
jaynyoni/hometest
/scripts/runner.py
UTF-8
1,273
2.546875
3
[]
no_license
import os from scripts.importjson import loadjson_func import csv def app_run(): source_dir = '../Data/input/' meta_file ='../Data/meta/load_table.csv' exiting_filenames = [] #load meta file for checks with open(meta_file, 'r') as f: reader = csv.DictReader(f) for row in reader: ...
true
b020b87a156e9a1385c5e4ae49fca16e5fa2e447
tdworowy/PythonPlayground
/Playground/Algorithms/cryptography/rsa.py
UTF-8
1,614
3.484375
3
[]
no_license
def extended_euclid(a: int, b: int) -> tuple: if b == 0: return 1, 0 (x, y) = extended_euclid(b, a % b) k = a // b return y, x - k * y def invert_modulo(a: int, n: int) -> int: (b, x) = extended_euclid(a, n) if b < 0: b = (b % n + n) % n return b def convert_to_int(messag...
true
5f578f6d75ca28884b8c9c8e455616a1e5847e4f
Khushisomani/codes
/38329269.py
UTF-8
241
2.828125
3
[]
no_license
import math for _ in range(int(input())): n = int(input()) a = list(map(int, input().split())) x = a[0] for i in range (1, n): x = math.gcd(a[i], x) if x == 1: print(n) else: print(-1)
true
874ffd34d24d0e6ae83d2a4420a74df9efb9a580
ShuyaoLim/Test2
/python1.3/09_变量的作用域和名称空间.py
UTF-8
1,526
3.828125
4
[]
no_license
# #python程序在加载的时候,会给解释器内部的需要的内置一些变量加载,加载的位置叫名称空间 # #接下来就开始执行你自己的py文件了,你自己创建的,在py文件中的这些变量统一放在全局名称空间中 # #当我们程序执行到函数的时候,函数内部会有自己的变量,python会为每一个正在执行的函数单独开辟一块空间,该内存被成为局部内存空间 # print("hello world") # def func(): # a=20 # func() # #内置名称空间 python自己的内容 # #全局名称空间 全局变量 # #局部名称空间 在函数被调用的时候,在函数执行完毕之后会被回收,主要存放自己函数的变量 #作用域,一个变...
true
0c30459d30c0dd772c67da141a831733e6adce99
L4res/URI-Python
/1036-formula-bhaskara.py
UTF-8
309
3.484375
3
[]
no_license
import math a, b, c = map(float, input().split()) delta = pow(b,2) - (4*a*c) if a <= 0 or b <= 0 or c <= 0 or delta <= 0: print('Impossivel calcular') else: R1 = (-b + math.sqrt(delta)) / (2*a) R2 = (-b - math.sqrt(delta)) / (2*a) print("R1 = %.5f" %R1) print("R2 = %.5f" %R2)
true
6b77301b22f9d7f74e6ebf852cf47bc6b8249dcc
michaelhmt/Benzaiten
/Benzaiten_mrk2.py
UTF-8
5,694
2.921875
3
[]
no_license
import numpy as np import pandas as pd import sys import os os.environ["CUDA_VISIBLE_DEVICES"]="-1" #disables CUDA as this bot trains faster on the CPU when the sample size is small from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import LSTM from ker...
true
f343c146418a82bcf8e37d692ce4d064d6b98591
saniaarif22/NLP
/Deep Learning/adagrad.py
UTF-8
1,007
2.90625
3
[]
no_license
import theano import theano.tensor as T from collections import OrderedDict class Adagrad: def __init__(self, params): #params must be a list of Theano shared variables self.params = params self.eps = 1e-3 # initial learning rate self.learning_rate = 0.05 # stor...
true
aa2c2e8a54499d5e7ed9a830d2a6bcb61b2bc5d5
mopan123/MyDemoPython
/Number.py
UTF-8
2,130
3.859375
4
[]
no_license
# @Time : 2020/9/16 11:45 # @Author : mopan # @File : Number.py # @Software: PyCharm f1 = 12.5 print("f1Value: ", f1) print("f1Type: ", type(f1)) f2 = 0.34557808421257003 print("f2Value: ", f2) print("f2Type: ", type(f2)) f3 = 0.0000000000000000000000000847 print("f3Value: ", f3) print("f3Type: ", type(f3)) ...
true
bae2a64a797ae6bc2397c0d32ee2ff9f5b84aa62
tigervanilla/Guvi
/swap_nos.py
UTF-8
49
2.9375
3
[]
no_license
a,b=input().split() a,b=int(b),int(a) print(a,b)
true