blob_id
stringlengths
40
40
repo_name
stringlengths
5
127
path
stringlengths
2
523
length_bytes
int64
22
545k
score
float64
3.5
5.34
int_score
int64
4
5
text
stringlengths
22
545k
b8d753d5e0b374b9e8296109068c57eb7135d378
GabrielCaggiano/GabrielCaggiano.github.io
/python/functions.py
151
4.125
4
#!/usr/local/bin/python age = input("Enter your age: ") int_age = int(age) if int_age < 21: print("you are young!") else: print("you are old!")
cc52319a2ab55bf049f6cb19c44a43a891fa12e4
GabrielCaggiano/GabrielCaggiano.github.io
/python/even_odd.py
187
4.28125
4
#!/usr/local/bin/python def even_odd(): number = input("Enter a number: ") n = int(number) if n % 2 == 0: print("even") else: print("odd") even_odd()
3c1c69310be708bba783d57410d8982566e1c75d
vnaazleen/CS50-s-Introduction-to-Computer-Science
/pset6/dna/dna.py
1,954
4.09375
4
from sys import argv, exit import csv # Validate the no of args and type of args if len(argv) != 3: print("Usage: python dna.py data.csv sequence.txt") exit(1) elif not((argv[1]).endswith('.csv') and (argv[2]).endswith('.txt')): print("Usage: python dna.py data.csv sequence.txt") exit(1) data = [] STR...
88f67c2c81381969a32841d4f3d542bcb9f56ed1
Slayer3000/Vluchteling
/NK.py
3,602
4
4
while True: print("Het verhaal van Ji-hoon") print ("Ji-Hoon, op 8 april 1993 geboren in Wonsan Noord-Korea ") print ("Op 9 December 2019 besluit hij om te vluchten van Noord-Korea.") print ("Hij stopt een rugtas vol met voedsel en kleren en gaat waar naar toe?") print ("A: Hij gaat via Zuid-Korea"...
81f129dd42773a1d89f0c19a456e730bc284682c
donggua0713/Python
/Number_module.py
527
3.53125
4
# # a=1 # b=2 # c=3 # d=4 # # ab=a,b,c,d # print(ab[0]) # print(oct(12)) # import random,math # # a=[1,2,3,4,5,6,7,8] # # print(random.choice(a)) # # print(random.choice([1,2,3,4,5,6,7,8])) # # print(random.choice('test')) # # print(random.random()) # print("random: %d" % math.ceil(random.random() * 10)) import rand...
2bba980041b15141739ced6c043ff60f0c0dfd62
spidyxD/Markov-s_Theorem_Python
/Regla.py
1,392
4.125
4
class Regla: """"" def __init__(self,entrada,salida,esFinal,numero): self.entrada = entrada self.salida = salida self.esFinal = esFinal self.numero = numero self.etiqueta = None self.comentario = None """"" def __init__(self, entrada="", salida=""): ...
3bb5d06fb71ef050daf817614f7b0568b20618d0
jj0526/my-files-1-1
/python/hw2/ex2-3.py
167
3.765625
4
x = int(input('첫번째 수를 입력하세요:')) y = int(input('두번째 수를 입력하세요:')) sum = x+y print('{}과 {}의 합은 {}이다.'.format(x,y,sum))
e650e3f37a2744019cdd7e287145299fc6283248
malharojoshi/C-98PROJECT
/swapingFiles.py
434
3.65625
4
def swapFiles(): fileName1=input("Enter The File Name 1: ") fileName2=input("Enter The File Name 2: ") with open(fileName1,'r') as a: data_a = a.read() a.close() with open(fileName2,'r') as b: data_b = b.read() b.close() with open(fileName1,'w') as a: a.write(...
da69ad72b4bd22f3c02d8ebf06b7df33b6d6844e
mace84/PS398-HW1
/HW3/HW3random.py
1,476
3.765625
4
## P398 Homework Assignment 3 ## Matthias Orlowski ## Generate different list structures for runtime tests for different sorting algorithms implemented in HW3sorts.py #! /usr/bin/python import random import numpy def randList(length): pop = numpy.arange(-50000,50000) outlist = sample_wr(pop,length) retur...
3336e11e717aa67b79e5b5e207c544657650b6e6
shijiahu/Python-Programs-1
/Solution8.py
341
4
4
# 8. Write a program to remove duplicate and return the length of # the unique list (eg a = [1,1,3,4] will return a = [1,3,4] and the length will be 3) def removeDup(nums): # print(list(set(nums)), len(list(set(nums)))) unique = [] for x in nums: if x not in unique: unique.append(x) print(unique, len(unique)) ...
36cbd3f9ef0e4c6f7f2a95f462d3bd43dbc3584a
mamrhein/ivalutils
/ivalutils/interval_chain.py
7,701
3.546875
4
# -*- coding: utf-8 -*- # ---------------------------------------------------------------------------- # Name: interval_chain # Purpose: Sequences of adjacent intervals # # Author: Michael Amrhein (michael@adrhinum.de) # # Copyright: (c) 2016 ff. Michael Amrhein # License: This program is ...
c3928c896f07c49824ff603f33c236ce4be212da
nsridatta/SeleniumFrameworks
/DinoBot/src/test/stringfunctions.py
871
4.40625
4
from string import capwords course = "Python for Programmers" # capitalize method will capitalize only first letter in the sentence print(course.capitalize()) for word in course.split(): print(word.capitalize(), sep=" ") # capwords method of string library will capitalize first letter of the words in the sentenc...
472604a5c88d986c5f33498b137bede480902d5c
jayantsinghjhala/python
/add_python.py
118
4.1875
4
#Program to add two numbers a=int(input("Enter number 1:")) b=float(input("Enter Number 2(float value):")) print(a+b)
2a75b94e95bab6a40f675beb210a45e024bbb728
Pysuper/LetCODE
/力扣/z_03_两两交换链表中的节点.py
1,453
4.0625
4
# !/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2020/4/8 下午1:25 # @Author : Zheng Xingtao # @File : z_03_两两交换链表中的节点.py # Definition for singly-linked list. class ListNode(object): """定义单链列表""" def __init__(self, x): self.val = x self.next = None class Solution(object): def...
0107b7a3f4c477b21345f7d99e06c51a4bdffbb4
AlexandrWeber/Machine_turing
/turing_ivanov.py
2,649
3.546875
4
#utf-8 #import parser /// parser est un module qui exécute les boucles. à finaliser # input du fichier et des chiffres data=input("taper le fichier: ") chiffres=input("taper les chiffres: ") chiffres=chiffres.split() # les listes pour la pile, le compteur d'instructions(compt) et le compteur d'instructions à l'inté...
51f1b6efac3506ef4a9e4eaf5555f1074b1f21a9
Fatmahmh/100daysofCodewithPython
/Day058.py
563
4.40625
4
#Python RegEx 2 #The findall() function returns a list containing all matches. import re txt = "the rain in spain" x = re.findall("ai",txt) print(x) txt = "the rain in spain" x = re.findall("pro",txt) print(x) if (x): print("yes we have match") else: print("no match") #The search() function sea...
f2e342a56bb38695f1c3ce963a021259a0afe425
Fatmahmh/100daysofCodewithPython
/Day017.py
701
4.59375
5
thistuple = ('apple ', 'bannana', 'orange', 'cherry') print(thistuple) #Check if Item Exists if "orange" in thistuple: print('yes , apple in this tuple') #repeat an item in a tuple, use the * operator. thistuple = ('python' , )*3 print(thistuple) #+ Operator in Tuple uesd To add 2 tuples or more ...
1a91c62922e98e6333eeff93d4202125096d7117
Fatmahmh/100daysofCodewithPython
/Day011.py
516
4.25
4
# Logical Operators x = 5 print(x > 5 or x < 4) print(x > 5 and x < 4) print(not x < 4) #Identity Operators ''' if they are actually the same object, with the same memory location.''' x = 5 y = 5 z = x print(" ") print(x is z ) print(x is not z ) print(x is y) print(x != z ) print(x == z ) ...
263756b0d0c4e11adb3925ffb3157884789e7446
Fatmahmh/100daysofCodewithPython
/Day035.py
281
4.0625
4
#Python Lambda - A lambda function is a small anonymous function. '''A lambda function can take any number of arguments but can only have one expression.''' x = lambda a : a+10 print(x(3)) m = lambda a,b : a*b print(m(3,6)) a = lambda a,b,c : a+b+c print(m(3,6,1))
4c99f91d6c7d84f01d4428665924c7c1c61d9697
Fatmahmh/100daysofCodewithPython
/Day022.py
732
4.71875
5
#Dictionary #Empty dictionary. thisdict = {} thisdict = { "brand" : 'ford', "model": "mustang", "year" : 1996 } print(thisdict) print(thisdict["model"]) #Get the value of the key. print(thisdict.get('model')) #You can change the value of a specific item by referring to its key name. th...
eda1d6ef2c68ead27256742ce59d27fef1d71673
Fatmahmh/100daysofCodewithPython
/Day020.py
372
4.4375
4
thisset = {} print(thisset) #Create a Set. thisset = {'apple', 'cherry', ' banana'} print(thisset) #// thisset = {'apple',1,2,1,5} print(thisset) for x in thisset: print(x) print("apple" in thisset) #Add an item to a set, using the add() method. thisset.add("orange") print(thisset) thisset...
c6f5f3657072bbdce3289326fc9d1b50031e8f8e
Fatmahmh/100daysofCodewithPython
/Day030.py
1,338
4.9375
5
#Python Loops3 For Loop '''The range() Function To loop through a set of code a specified number of times, we can use the range() function, The range() function returns a sequence of numbers, starting from 0 by default, and increments by 1 (by default), and ends at a specified number.''' for x in range(6): pr...
c4351584f1cc8645ad449e40a61e59d63c41dd03
prajwalr123/prajwal
/rocks.py
356
3.96875
4
#playing the game of rock paper scizeer a={1:'r',2:'p',3:'s'} import random c=a[random.randint(1,3)] print("computer choice is",c) u=input("Enter rock paper and scizeer :") if(u==c): print("COMPUTER AND USER ARE TIE") elif(u=='p' and c=='s' or u=='s' and c=='r' or u=='r' and c=='p'): print("SORRY BRO U LOSS") else: ...
8e32ecc9c3a4799548dca4e8f887bd79ed139984
dchapp/blind75
/python/17_letter_combinations_of_a_phone_number.py
938
3.5625
4
num_to_letters = { '2': ['a', 'b', 'c'], '3': ['d', 'e', 'f'], '4': ['g', 'h', 'i'], '5': ['j', 'k', 'l'], '6': ['m', 'n', 'o'], '7': ['p', 'q', 'r', 's'], '8': ['t', 'u', 'v'], '9': ['w', 'x', 'y', 'z'], } class Solution: def letterCombinations(self,...
b9e2c1d04b64132390f88685a9f143f18f2c6a5f
dchapp/blind75
/python/74_search_a_2d_matrix.py
3,490
4.125
4
def binary_search(array, start_idx, end_idx, target): # assumes array is sorted in increasing order # Handle case where target not in array if start_idx == end_idx: if array[start_idx] == target: return start_idx else: return -1, (start_idx, end_idx) elif st...
e2139a234569601081854201834de92aa6eccfa9
dchapp/blind75
/python/323_number_of_connected_components_in_an_undirected_graph.py
876
3.578125
4
def to_graph(n, edges): adj_list = {node:[] for node in range(n)} for src,dst in edges: adj_list[src].append(dst) adj_list[dst].append(src) return adj_list def count_connected_components(graph): def dfs(node, visited): visited.add(node) for neighbor in graph[nod...
fd3f0eb47d38bfa2214371104065b33a3b7d6cae
Prabh810/Student-Result-Management-System
/create_db.py
951
3.71875
4
import sqlite3 def create_db(): con = sqlite3.connect(database="rms.db") cur = con.cursor() cur.execute("CREATE TABLE IF NOT EXISTS course(cid INTEGER PRIMARY KEY AUTOINCREMENT, name text, duration text,charges text, description text)") con.commit() cur.execute("CREATE TABLE IF NOT EXISTS student(...
956817d3eab7c8c8713b1993148ef1b81555b262
RodrigoIQ/Clases
/Curso de Estadística Computacional con Python/Montecarlo/CardGame.py
1,431
3.96875
4
# we will siulate a game of cards to calculate the probabilityes of difrent games import random import collections SUITS = ['♣','♥','♠','♦'] RANKS = ['A','2','3','4','5','6','7','8','9','10','J','Q','K'] #Function that generates cards the 52 cards in a deck def creat_cards(): cards = [] for suit in SUITS: ...
d9ce8e450419c490ad106da654208eef66f691d4
Sophia-PeiJin-SU/100-Days-of-Code
/Day19-turtle racing game/event listener.py
597
3.578125
4
from turtle import Turtle, Screen denny = Turtle() denny.shape("turtle") denny.color("coral") screen = Screen() def move_forward(): denny.forward(10) def move_backward(): denny.backward(10) def turn_left(): denny.left(10) def turn_right(): denny.right(10) def clear(): denny.clear() de...
f2191bfe998caedc821e73830f358c8b4bfd0877
izabelrodrigues/projeto_jogos
/jogos.py
550
3.75
4
import advinhacao import forca def escolhe_jogo(): print("******************************************************") print("********** ******** **** Jogos ********** ******* ****") print("******************************************************") print("(1) Forca (2) Adivinhação") jogo = int(input("Se...
c0fb51fd6468a9072b702327d4e4ebc4df783b9f
Ibrahim0963/Find_SQL_Injection_sites
/Find_SQL_Injection_Sites.py
604
3.90625
4
from googlesearch import * import sys try: dork = input("Enter your Dork :") while dork == "": dork = input("Enter your Dork :") try: site_nbr = int(input("Enter the Number of sites to find out : ")) while site_nbr == 0: site_nbr = int(input("Enter th...
5321fecf8736d2d91764c01471f2afcbb0394d50
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_302.py
528
4.0625
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) outline = input("Please enter a symbol for the box outline: ") boxFill= input("Please enter a symbol for the box fill: ") s ="" for h in range(0,height): for ...
b09b258af455cf1bb4113e47b35de12055951f72
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_235.py
673
4.1875
4
def main(): temp = int(input("Please enter in the temperature: ")) scale = input("Please enter what the temperature is measured in (use K or C): ") if scale == "K": if temp >= 373: print("At this temperature, water is a gas") elif temp <= 273: print("At this temperat...
5eccf9b10b1f9b07240a3d8e52085b023028c03f
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_239.py
539
3.921875
4
def main(): width = int(input ("Please enter the width of the box: ")) hight = int(input ("Please enter the height of the box: ")) outSimple =(input ("Please enter a symbol for the box outline: ")) innSimple =(input (" Please enter a symbol for the box fill: ")) for i in range(hight): ...
a3b656dbacb035a707afa9a4c917bc40f13f3275
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_440.py
674
4.125
4
def main(): temp = float(input("please enter the temperature: ")) form = input("please enter 'C' for celsius or 'K' for kelvin: ") if(temp > 0) and ( temp < 100) and (form == "C"): print("the water is a liquid.") if(temp <= 0) and (form == "C"): print("the water is frozen sol...
cbf4ed540b2699b4fd3bbba29e78e758292f8153
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_149.py
522
3.921875
4
def main(): wDth = int(input("Please enter the width of the box: ")) hIth = int(input("Please enter the height of the box: ")) outLn = input("Please enter the character you'd like for the" + " outline of the box: ") fill = input("Please enter the character you'd like for the" ...
c325b8ef8e8cd36b3e79cd78b5d19123b8d66d81
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_463.py
449
4.09375
4
def main (): width= int(input("Please enter the width of the box: ")) height= int(input("Please enter the height of the box: ")) out= input("Please enter a symbol for the box outline: ") fill= input("Please enter a symbol for the box fill: ") for outBox in range(height): if outBox == 0 or ou...
25d878c1cd851bdaaddcf45b486b01685b0034b9
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_149.py
312
4.15625
4
def main(): height= int(input("Please enter the starting height of the hailstone ")) while height >1: if height % 2==0: height = height//2 else: height=(height*3) +1 print("Hail is currently at height", height) print("Hail is stopped a height 1") main()
bdc4921e07986312c6010df60134266b712c96d9
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_359.py
464
3.953125
4
def main(): widthBox = int(input("Please enter the width of the box: ")) heightBox = int(input("Please enter the height of the box: ")) outSym = input("Please enter a symbol for the box outline: ") fillSym = input("Please enter a symbol for the box fill: ") for n in range(heightBox): if (n =...
9d0a197588f21b7434ae1a3923da17158aefec52
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_406.py
292
4.0625
4
def main(): numOne = int(input("Pick a positive integer.")) while numOne !=1: print(numOne) if (numOne%2)== 0: numOne = (numOne/2) print (numOne) elif (numOne%2)== 1: numOne = (numOne*3)+1 print (numOne) main()
6cca26f7f33f8153a78c53e83a1a578a02d1f37c
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_345.py
717
4.125
4
def main(): temp = float(input("Please enter the temperature: ")) tempType = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") if (tempType == 'C'): if (temp >= 100): print("The water is gas at this temperature") elif (temp >= 0): print("The water is liquid a...
a45bb36911856d50f29a397d6762c87d7fbfc058
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_084.py
493
4.0625
4
def main(): length = int(input("Enter your length of the triangle: ")) width = int(input("Enter your width: ")) outline = input("Please enter a symbol for outline: ") filler = input("Please enter a symbol to fill the box: ") inner_size = length - 2 print (outline * length) def printRect (len...
29901957493bdb25e976502fd7b5db9dcfe8d331
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_407.py
602
4.09375
4
def main(): temperature = float(input("Please enter the temperature: ")) mode = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") state = "" if (mode == "C"): if (temperature <= 0): state = "solid" elif (temperature >= 100): state = "gas" else: ...
863f0fe84be66041fef6e6038fbc8a3b2a64c85a
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_379.py
584
4.25
4
def main(): STOP = 1 height = int(input("Please enter the starting height of the hailstone: ")) while (height <=0): print("The starting height must be a positive number greater than 0") height = int(input(" Please enter the starting height of the hailstone: ")) while (height != STOP): ...
bef7da3f208858c6d5be88b7be115e3d4bf0855b
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_151.py
489
3.96875
4
WALL = 2 CONDITION = 1 def main(): width = int(input("Enter the width ")) height = int(input("Enter the height ")) out_sym = input("enter the outer sym ") fil_sym = input("enter the inner sym ") for i in range(1): outer_shell = width * out_sym print(outer_shell) for i in rang...
3cf11a7f1e219c740945575d70b7e4a1bda4190f
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_423.py
676
3.9375
4
def maine(): t = int(input("Please enter the tempurature:")) l = str(input("Please enter 'c' for Celsius, or 'k' for Kelvin:")) if t <= 0 and l == "c": print ("At this tempurature, water is a solid (frozen)") if t <273 and l == "k": print ("At this tempurature, water is a solid (frozen)") i...
d01b3b97b6cb07c3332001b023c128da8a1452c6
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_229.py
518
4.15625
4
def main(): width = input("Please enter the width of the box: ") width = int(width) height = input("Please enter the height of the box: ") height = int(height) outline = input("Please enter a symbol for the box outline: ") fill = input("Please enter symbol for the box to be filled with: ") p...
eb4b479fb3d9198055698632c616535a4ed51210
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_083.py
789
4.03125
4
SOLIDC=0 GASC=100 SOLIDK=273.16 GASK=373.16 def main(): Temp=float(input("Please enter the temperature:")) Scale=input("Please enter 'C' for Celsius, or 'K' for Kelvin:") if Scale=="C": if Temp<=SOLIDC: print("At this temperature, water is a (frozen) solid.") elif Temp>=GASC: ...
d8ee568f7210d5fea8e18a476063c325ecd7e0fc
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_331.py
507
4.0625
4
def main(): length = int(input("Please enter the length of the box: ")) height = int(input("Please enter the height of the box: ")) symb1 = input("Please enter a symbol for the outline of the box: ") symb2 = input("Please enter a symbol for the box fill: ") j = 1 for j in range(1,height + 1): ...
fe8878d65967a1e3c11227f3b65dc736906d1b1e
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_117.py
464
3.984375
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) outbox = input("Please enter a symbol for the box outline: ") fillbox = input("Please enter a symbol for the box fill: ") topbotbox = width * outbox midbox = outbox +...
ebc0aed659e66bcee2937d0655a6102d87e680c8
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_288.py
665
4.125
4
def main(): temp=float(input("Please enter the temperature: ")) unit=input("Please enter 'C' for Celcius, or 'K' for Kelvin: ") if unit=="C": if temp<=0: print("At this temperature, water is a solid.") elif temp>=100: print("At this temperature, water is a gas.") ...
12c854f625fc3fb346fba5b8999d821b8dcbf2c9
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_133.py
497
4.1875
4
def main(): height = int(input("Enter a height for the hailstorm: ")) evenOdd = height % 2 while height != 1: while evenOdd == 0: height = int(height / 2) evenOdd = height % 2 print("Hail is currently at height",height) while evenOdd == 1 and height != 1: ...
c13e7fa212cadac8a9e8490e02947e335a3efb80
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_267.py
396
4.1875
4
def main(): width = int(input("Please enter a width: ")) height = int(input("Please enter a height: ")) symbol1 = input("Please enter a symbol: ") symbol2 = input("Please enter a different symbol: ") length = 0 print(symbol1*width) for n in range(height - 2): print(symbol1+(symbol2*(...
8d66c21863dca0efbba1981f8958b208c0830359
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_010.py
1,039
4.125
4
def main(): temp = float(input("Pleas enter the temperature:")) scale = input("Please enter 'C' for Celsius, or 'K' for Kelvin:") if scale == "C": if temp <= 0: print("At this temperature, water is a(frozen) solid.") elif temp >= 100: print("At this temperature, water...
de0e4572ab2d9a4c45f884d3f7fa1dca8f71308c
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_016.py
431
4.15625
4
def main(): width = int(input("enter width of box ")) height = int(input("enter height of box ")) outline = input("enter a symbol for the outline of the box ") fill = input("enter a symbol for the fill of the bod") top = outline * width print(top) for i in range (0, height -2): ins...
04023bc7cb609f7b7f9078ebadae64321c80ed97
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_264.py
604
4.1875
4
def main(): temp = float(input("What temperature would you like to test:")) tempMode = input("Is this temperature in Kelvin or Celcius? Enter K or C:") if temp <= 0 and tempMode == "C" or temp <= 273 and tempMode == "K": print("At", str(temp) + tempMode, "water would be freezing.") if 0 < temp <...
90f7d12687698cfdd78085f0324bcca630cba0dc
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_119.py
570
4.125
4
temp = float(input("Please enter the temperature: ")) SI = input("Please enter 'C' for Celcius, or 'K' for Kelvin: ") if SI == 'C' and temp > 100: print("At this temperature, water is gas. ") elif SI == 'C' and temp > 0: print("At this temperature, water is liquid") elif SI == 'C' and temp <= 0: print("At t...
32d08976d85268fcfeda8cc6bab3279a51445ef0
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_019.py
542
4.28125
4
def main(): height=int(input("Please enter the height of the hail: ")) if height <= 1: print("OOPS! You quit the program, gotta be greater than 1") while height > 1: even = height % 2 if even == 0: if height >= 1: print("The current height is ",height) ...
911ed2d52c58f504bb68f5d95ab6b58163252451
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_241.py
379
4.125
4
def main(): num = int(input("Please enter any positive number : ")) while num > 1: if num == 1: print ("Hail stopped at 1") elif num % 2 == 0: num = int(num/2) print ("Hail is currently at :", num) elif num % 2 == 1: num = int((num * 3)+ 1)...
eb7164e404106b0f9526a171840a92b9b4d52743
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_379.py
621
4.1875
4
def main(): temp = float(input("What is the temperature? ")) scale = input("Enter C for Celsius or K for Kelvin: ") if scale == "K" and temp <= 273: print("The water is frozen solid") elif scale == "K" and temp >= 273 and temp <=373: print("The water is a liquid") elif scale == "K" a...
35f15cb08a54d61c02561b7440d5856f9b41ec52
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_180.py
489
4.03125
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) outlineSymbol = input("Please enter the symbol for the box outline: ") fillSymbol = input("Please enter the symbol for the box fill: ") for i in range(0, height, 1): ...
fcfe390435d7af614d01eced8534f46a968f5e70
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_115.py
693
4.0625
4
def main(): temp=float(input("Whats the temperture?")) form=input('Please enter "C" for Celsius, or "K" for Kelvin') if form == "K": if temp <= 273.15: print('At',temp,'K Water is Ice') elif temp >=373.15: print('At',temp,'K Water is Vapor') else: ...
5b6ffe988ddd6c2c9ddcdd30fd55660e3cc00660
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_361.py
484
4.03125
4
def main(): userWidth = int(input("Please enter the width of the box:")) userHeight = int(input("Please enter the height of the box:")) boxOut = input("Please enter a symbol for the box outline:") boxFill = input("Please enter a symbol for the box fill:") for boxHeight in range(0,userHeight): ...
fa46a23d78b2908ac225f08cb51bde2278d97786
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_118.py
515
4.125
4
def main(): posInt = int(input("Please enter a starting positive integer for height of the hailstone: ")) while (posInt != 1): if (posInt % 2 == 0) and (posInt - 2 != 0): posInt = posInt // 2 print("Hail is currently at height", posInt) elif ((posInt % 2 == 1) and (posInt...
9aeb9814bb77996f8e7737bc36731f02ee67aa38
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_358.py
934
4.0625
4
def main(): unitTemp = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") temperature = input("Please enter the temperature ") temperature = float(temperature) tempKel=temperature-273.15 if(unitTemp == "C"): if(temperature <= 0): print("At this temperature, water is a sol...
8130491334db1ab5f6248f14e76e943fe204d846
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_357.py
882
4.125
4
def main(): FREEZE_C = 0 BOIL_C = 100 FREEZE_K = 273 BOIL_K = 373 tempNum = float(input("Please enter the temperature: ")) tempMes = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") if tempMes == "C" or tempMes == "c": if tempNum <= FREEZE_C: print("At this temp...
70e5a013ef43ee81218f77e082c234ca383c372a
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_202.py
487
4.03125
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) symOut = input("Please enter the symbol for the box outline: ") symFill = input("Please enter the symbol for the box fill: ") topRow = symOut*width midRow = symOut + ...
f67cca03dedd3fabb5a608307249f2c99fbdde95
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_065.py
397
4.25
4
def main(): startingHeight = int(input("Please enter the starting height of the hailstone:")) while startingHeight != 1 : if startingHeight % 2 == 0 : startingHeight = startingHeight / 2 else : startingHeight = (startingHeight * 3) + 1 print("Hail is currently at"...
d2cd6298046986955ae30fb1e8ddac575067a41a
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_448.py
267
4.125
4
def main(): hail=int(input("Please enter the starting height of the hailstone: ")) while hail != 1: if hail % 2 == 0: hail = (hail/2) print("",hail) else: hail = (hail*3)+1 print("",hail) main()
d8dbb23a45094c53f6fa387898530c7b2de3564e
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_174.py
376
4.0625
4
def main(): width = int(input("What is the width? ")) height = int(input("What is the height? ")) outline = input("What is the box outline? ") fill = input("What is the box fill? ") for i in range(height): if i == 0 or i == (height-1): print(outline * width) else: ...
3fef15c0c61ef5557497eb5c44d6d9afb8dcf9b0
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_038.py
655
4.0625
4
def main(): temp = float(input("Please enter a number")) value = input("Please enter a 'C' for celsius, or 'K' for Kevlin") if value.upper() == "C": if temp <= 0: print(" At this temperture, water is solid(ice/frozen)") elif temp < 100 and temp > 0: print(" At this te...
951628a2de9b6862ab6523746e01186313039239
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_006.py
545
4.09375
4
def main(): width = int( input( "Please enter the width of the box: ") ) height = int( input ( "Please enter the height of the box: ") ) outSymbol = input( "Please enter a symbol for the box outline: " ) fillSymbol = input( "Please enter a sumbol for the box fill: ") for box in range(height) : ...
b4a99812a7f88d70e240e4b0e8d0b5e7d1c1fdf5
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_182.py
748
4.15625
4
def main(): userTemp = float(input("Please enter the temperature:")) userScale = input("Please enter 'C' for Celsius, or 'K' for Kelvin:") a = userTemp if userScale == "C": if a > 0 and a < 100: print("At this temperature, water is a liquid.") elif a <= 0: print(...
ea2e59136957f44a95d2b703ce7800f616e37515
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_200.py
454
3.984375
4
def main(): width = int(input("Please enter the width of the box: ")) heightNum = int(input("Please enter the hieght if the box: ")) height = range(heightNum) sym1 = input("Please enter the symbol for the outline: ") sym2 = input("Please enter the symbol to fill the box: ") for i in height: ...
78248ba040f43519ccffe86cd9039788fa8927f8
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_372.py
97
3.625
4
def main(): number = int(input("Please enter a positive integer: ") print(number) main()
561520eb3938890393bc3787c9a6cca71e8de744
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_449.py
519
4.03125
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) edge = input("Please enter a symbol for the box outline: ") inside = input("Please enter a symbol for the box fill: ") for i in range(0, width): for j in range(0,...
2781dedea429a19550782a44a30eb496287ba903
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_339.py
494
4.0625
4
def main(): units = input("what are the units of tempature? (k/c)") temp = (float)(input("what is the tempature of the water?")) if units == "k": if temp >= 373.16: print("boiling") elif temp <= 273.16: print("frozen") else : print("water") e...
7fb3c53caf031fb4a7580440acbfc8f8811d65b7
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_246.py
581
4.375
4
def main (): inpTemp=float(input("What is the temperature?")) unit=input("What is the unit? (you may either enter C for Celcius or K for Kelvin)") if unit == "C": temp=inpTemp elif unit == "K": temp=inpTemp-273 else: print ("You did not enter a correct unit. Please either en...
c443537f08867bc6ac762e6794ed4f2d6158635b
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_287.py
479
4.15625
4
def main(): width = int(input("Please enter the width of the box:")) height= int(input("Please enter the height of the box:")) outline_symbol = input("Please enter a symbol for the box outline:") box_fill_symbol= input("Please enter a symbol for the box fill:") print(outline_symbol* width) for i...
9ef3f63ac4f034094e22278433b8e325967d018f
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_394.py
302
4.03125
4
def main(): h = int(input("Please enter the starting height of the hailston: ")) while (h != 1): print("Hail is currently at height ", h) if ((h % 2) == 0): h = h//2 elif ((h % 2) != 0): h = (h*3)+1 print("Hail stopped at height ",h) main()
803d10d6e860f0a2ae69c7379111ddc9a43c345f
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_179.py
526
4
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) boxOutline = input("Please enter a symbol for the outline: ") boxFill = input("Please enter a symbol for the fill: ") for i in range(1, height + 1, 1): if i == 1:...
bbe2c383da118637808f44330ec5320ed2bdabdf
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_412.py
583
4.0625
4
def main(): temp = float(input("Please enter a temperature:")) temptype = str(input("Enter 'C' for Celcius or 'K' for Kelvin:")) if temptype == "C": if temp < 0: print("Water is frozen at", temp) if temp > 100: print("Water is gas at", temp) else: ...
82b5935a8d2440bff62d12a0e950755951b034c8
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_025.py
404
4.21875
4
def main(): hail=float(input("Please enter the starting height of the hailstone:")) while hail!=1: if (hail % 2)== 0: hail= int(hail/2) print("Hail is currently at height", hail) elif (hail % 2)!=0: hail= (hail*3)+1 print("Hail is currently a...
9b6c849522778de47640b1e71dc28f13a81a6176
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_356.py
504
4.125
4
def main(): width = int(input("Pease enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) outline = input("Please enter the symbol for the box outline: ") fill = input("Pease enter a symbol for the box fill: ") if height != 1: print(width *outline) ...
5bafe79e853a4f1faf96a70b31f85709b0c3eba9
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_391.py
449
4.15625
4
def main(): print() temp = float(input("Please enter the temperature: ")) scale = input("Please enter the scale, C for Celsius or K for Kelvin: ") if scale == "K": temp = temp - 273.15 if temp <= 0: print("At this temperature, water is frozen solid.") elif temp < 100: pr...
99249e5106adef0b9acde9f0d7f1900f875ef3f0
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_387.py
512
4
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) symbol = input("Please enter the symbol for the box outline: ") fill = input("Please enter the symbol for the box fill: ") for row in range(height): for col in r...
68870ef7d9ab3af9eb2406e5a6472429465b8c37
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_264.py
294
4.09375
4
def main(): hailHeight = int(input("Please enter the starting hight of the hailstones: ")) while hailHeight > (1): hailWork = (hailHeight / 2) print("Hail is currently at height" , (hailWork)) if hailHeight == 1: print("Hail stopped at height 1") main()
0d8bec79312aa7cd3f9d43f5c607d0ab256f53d4
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_290.py
532
4.1875
4
def main (): width = int(input("What is the width of the box: ")) height = int(input("What is the height of the box: ")) boxOutline = input("What symbol do you want to use for the box's outline: ") boxFill = input("What symbol do you want to use to fill the box: ") upperLimit = height - 1 fillWi...
99e572c3758032c1ecc165f1a759b2df26fda8cf
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_232.py
360
4.15625
4
def main(): hailNum = int(input("Please enter the starting height of the hailstone: ")) while hailNum != 1 : print (" Hail is currently at height", int(hailNum) ) if hailNum % 2 == 0: hailNum = hailNum / 2 elif hailNum % 2 != 0: hailNum = (hailNum * 3) +1 p...
9164491697c9054aa77cd4dbc5b848897cfb1ef3
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_111.py
466
4.125
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) symbolOut = input("Please enter the symbol for the box outline: ") symbolIn = input("Please enter a symbol for the box fill: ") width2 = (width - 2) symbol1 = (width ...
8eae305acfb1743f82863caad84cc0ed7b836e4b
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_435.py
611
3.953125
4
def main(): Temperature = float(input("Please enter the tempreature")) KelvinandCelsius = input("please enter the kelvin or celsius") if KelvinandCelsius =="celsius": if Temperature >= 100: print(" Water is boiling") elif Temperature <=0: print("Water is frozen") ...
fb515fc4b31539290813650ebb84045f287cb338
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_402.py
514
4.0625
4
def main(): width = int(input("Please enter the width of the box: ")) height = int(input("Please enter the height of the box: ")) outlineSymbol = input("Please enter a symbol for the box outline: ") fillSymbol = input("Please enter a symbol for the box fill: ") heightList = list(range(height)) f...
09c091612e8ff7d2f1abcfa9f0f2cbac911ef224
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_109.py
740
4.25
4
def main(): startingHeight = (int(input("Please enter the starting height of the hailstone:"))) if (startingHeight == 1): print ("Hail stopped at height",startingHeight) else: print("Hail is currently at height",startingHeight) while (startingHeight != 1): if (startingHeight % 2)...
1c7a7db909b5fd4735f0fd31c15f0fa40a04f7c5
MAPLE-Robot-Subgoaling/IPT
/data/HW5/hw5_131.py
685
4.03125
4
def main(): width = int(input("please enter the width of the box")) height = int(input("please enter the height of the box")) symbol1 = input("enter the symbol for box outline") symbol2 = input("enter the symbol for the box fill") symbolcon = symbol1+symbol2*(width-2)+symbol1 if width>1 and hei...
b3a9e187faac24d060d635a3cf5601e11c1a95bf
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_237.py
1,010
4.15625
4
def main(): temperature = float(input("Please enter the temperature: ")) scaleType = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") C_FROZEN = 0 C_BOIL = 100 K_FROZEN = 273 K_BOIL = 373 if scaleType == 'C': if temperature <= C_FROZEN: print("At this temperatu...
cdaf91d26893dc124174bc5b9e919c9065f1f593
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_315.py
538
4.21875
4
def main(): starting_height = int(input("Please enter the starting height of the hailstone: ")) print("Hail is currently at height",starting_height) while starting_height != 1: if starting_height % 2 == 0: starting_height = int(starting_height / 2) if starting_height != 1: print("Hail is currently at hei...
a114f24c69db097c663703ae32a90c51ac5b6d14
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_196.py
747
4.125
4
def main(): user_temp = float(input("Please enter the temperature: ")) user_scale = input("Please enter 'C' for Celsius, or 'K' for Kelvin: ") if user_scale == 'K': if user_temp < 273.15: print("At this temperature, water is a (frozen) solid.") elif user_temp > 373.15: ...
c4df35c8a0b8dab68815c048f3487c7f243e7d75
MAPLE-Robot-Subgoaling/IPT
/data/HW3/hw3_415.py
452
4.1875
4
def main(): Temp = float(input("Enter the temperature: ")) Type = input("Enter 'C' for Celsius, or 'K' for Kelvin: ") if Temp <= 273.15 and Type == "K" or Temp <= 0 and Type == "C": print("At this temperature, water is a solid.") elif Temp >= 373.15 and Type == "K" or Temp >= 100 and Type == "C...
d5ae3e2f778bd3fca438cc0d4c7399df90a54be9
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_108.py
151
3.890625
4
def main(): userInput = int("Please enter the starting height of the hailstone: ") while userInput % 0: print(userInput / 2) elif:
987cdb70436033ed5d8253f83c2ca4286aee9d73
MAPLE-Robot-Subgoaling/IPT
/data/HW4/hw4_290.py
288
4.125
4
def main(): a = int(input("Please enter the starting height of the hailstone: ")) while a !=1: print("Hail is currently at height",int(a)) if a %2== 0: a/=2 else: a = a*3+1 print("Hail stopped at height 1") main()