content
stringlengths
7
1.05M
class Solution: def convertToBase7(self, num: int) -> str: result = '' n = abs(num) while n: n, curr = divmod(n, 7) result = str(curr) + result return '-' * (num < 0) + result or '0'
########import random abcd=['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'] k=list(input("Enter your String")) key="HACK" scn=[['']*4 for i in range(0,4)] p=sorted(list(key)) ci=[key.index(i) for i in p] print(ci,p) i,j=0,0 for m in k: if j>3: i+=1 ...
start = int(input()) stop = int(input()) result = "" for number in range(start, stop + 1): print(chr(number), end=" ")
H, W = map(int, input().split()) field = [[str(i) for i in input()] for _ in range(H)] count = 0 for x in range(W-1): for y in range(H-1): black_num = 0 for x1, y1 in [(x, y), (x+1, y), (x, y+1), (x+1, y+1)]: if field[y1][x1] == '#': black_num += 1 if black_num % ...
""" test: """ def sum_function(a, b, c): """ returns sum of a and b :param a: array :param b: integer :return: sum of a and b change """ c = a return c def average_function(a, b): """ returns the average of the squares of a and b :param a: integer :param b: inte...
GET_REPOS = [ { 'name': 'sample_repo', 'nameWithOwner': 'example_org/sample_repo', 'primaryLanguage': { 'name': 'Python', }, 'url': 'https://github.com/example_org/sample_repo', 'sshUrl': 'git@github.com:example_org/sample_repo.git', 'createdAt': '...
class Node(): def __init__(self, valor): self.valor = valor self.next = None class Stack: def __init__(self): self.head = Node("head") self.size = 0 def __str__(self): actual = self.head.next str1 = "[" while actual: str1 += str(actual.valor) + ", " actual = actual.next s...
sexo=str while (sexo != 'F') and (sexo != 'M'): sexo = (input("Digite o sexo: ")) if (sexo != 'F') and (sexo != 'M'): print('Opção inválida, tente novamente')
"""This settings module defines the benchmark driver settings""" EXPORT_GRAPHVIZ = False EXPORT_JSON = False REPEATS = 1 LOGICAL_DOT = '' FRAGMENTED_DOT = '' LOGICAL_JSON = '' FRAGMENTED_JSON = '' PRESTO_SETTINGS = {}
# Дележ яблок-1 def apple_sharing(n, k): return print(k // n) n = int(input()) k = int(input()) apple_sharing(n, k)
# encoding: utf-8 class Translator(object): """翻译器抽象类""" user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) " \ "Chrome/73.0.3683.86 Safari/537.36 " def __init__(self): self.trans_from = 'zh' self.trans_to = 'en' def get_r...
# Databricks notebook source # MAGIC %run ./includes/utils # COMMAND ---------- mountDataLake(clientId="64492359-3450-4f1e-be01-8717789fd01e", clientSecret=dbutils.secrets.get(scope="dpdatalake",key="adappsecret"), tokenEndPoint="https://login.microsoftonline.com/0b55e01a-573a-4060-b656-d...
class Artist: def __init__(self, artist_id, uri, title): self.id = artist_id self.uri = uri self.title = title def __str__(self): return '{} (id={})'.format(self.title, self.id) def to_tuple(self): return (self.id, self.uri, self.title)
description = 'Actuators and feedback of the shutter, detector, and valves' group = 'lowlevel' excludes = ['IOcard'] devices = dict( I1_pnCCD_Active = device('nicos.devices.generic.ManualSwitch', description = 'high: Detector is turned on', states = [0, 1], ), I2_Shutter_safe = device('ni...
def multiple_of(num, multiple): return num % multiple == 0 def sum_of_multiples(limit): return sum(x for x in range(limit) if multiple_of(x, 3) or multiple_of(x, 5)) if __name__ == "__main__": print(sum_of_multiples(1000))
# nobully.py # Metadata NAME = 'nobully' ENABLE = True PATTERN = r'^!nobully (?P<nick>[^\s]+)' USAGE = '''Usage: !nobully <nick> This informs the user identified by nick that they should no longer bully other (innocent) users. ''' # Constants NOBULLY_URL = 'https://www.stop-irc-bullying.info/' # Command asy...
'''print('Ajuda Interativa') print('Usando o help(e o comando)') #help(print)''' #exemplo DOCTRINGS** '''def contador(i, f, p): """ -> faz uma contagem e mostra na tela. :param i: Inicio da contagem :param f: Fim da contagem :param p: Passo da contagem :return: sem retorno """ c = i ...
""" Misc. imported libs. """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ############################################# def eigen(): new_git_repository( name = "eigen", commit = "954879183b1e008d7f0fe...
# Copyright (c) 2018, WSO2 Inc. (http://wso2.com) All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
name = "Angela" letters_list = [x for x in name] print(letters_list) doubled = [x * 2 for x in range(1, 5)] print(doubled) maybe_tripled = [x * 3 for x in range(1, 10) if x > 5] print(maybe_tripled) def foo(value): if value > 5: return True return False with_fn = [x * 3 for x in range(1, 10) if fo...
# Definition for singly-linked list. # class ListNode: # def __init__(self, val=0, next=None): # self.val = val # self.next = next class Solution: def reverseBetween(self, head: ListNode, left: int, right: int) -> ListNode: left -= 1 right -= 1 newHead = ListNode(-1) ...
# entrada 3 float A = float(input()) B = float(input()) C = float(input()) # variaveis (pesos) P1 = 2 P2 = 3 P3 = 5 # calculo da media MEDIA = ((A * P1) + (B*P2) + (C*P3)) / (P1+P2+P3) print('MEDIA = {:.1f}'.format(MEDIA))
def get_CUDA(vectorSize = 10, func = "sin(2*pi*X/Lx)", px = "0.", py = "0.", pz = "0.", **kwargs): return '''__global__ void initialize(dcmplx *QField, int* lattice, int* gpu_params){ int deviceNum = gpu_params[0]; int numGPUs = gpu_params[2]; int xSize = lattice[0]*numGPUs; int ySize = lattice[2]; int zSize = l...
""" Empty files are not supported by Signed VSO Builds. Adding dummy file @author: shagup """
answer1 = widget_inputs["radio1"] answer2 = widget_inputs["radio2"] answer3 = widget_inputs["radio3"] answer4 = widget_inputs["radio4"] is_correct = False comments = [] def commentizer(new): if new not in comments: comments.append(new) if answer2 == True: is_correct = True else: is_correct = is_c...
# # Copyright (c) 2016, Prometheus Research, LLC # __import__('pkg_resources').declare_namespace(__name__)
num = int(input('Insira um num inteiro: ')) if num % 2 == 0: print('O numero {} é par'.format(num)) else: print('O numero {} é impar'.format(num))
class Solution: def uniquePaths(self, m: int, n: int) -> int: """initialize a n * m array""" paths = [[0 for col in range(m)] for row in range(n)] """ init all item in last row to 1""" for col in range(m): paths[n - 1][col] = 1 """ init all item in last col to ...
#task1: print the \\ double backslash print("This is \\\\ double backslash") #task2: print the mountains print ("this is /\\/\\/\\/\\/\\ mountain") #task3:he is awesome(using escape sequence) print ("he is \t awesome") #task4: \" \n \t \' print ("\\\" \\n \\t \\\'")
class TaskError(Exception): pass class StrategyError(Exception): pass
# 1 = Ace, 10 = Jack, 10 = Queen, 10 = King deck = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 10, 10, 10] deck = deck * 4 # TODO: Add cut-card functionality def initiate_deck(): """Asks the user how many decks are in play and generates the shoe""" while True: try: deck_count = int(input("How many de...
class Controller: def __init__(self, period, init_cores, st=0.8): self.period = period self.init_cores = init_cores self.st = st self.name = type(self).__name__ def setName(self, name): self.name = name def setSLA(self, sla): self.sla = sla self.setp...
r""" Utility functions for building Sage """ # **************************************************************************** # Copyright (C) 2017 Jeroen Demeyer <J.Demeyer@UGent.be> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as p...
# *************************************************************************************** # *************************************************************************************** # # Name : democodegenerator.py # Author : Paul Robson (paul@robsons.org.uk) # Date : 17th December 2018 # Purpose : Imaginary langu...
# Sphinx helper for Django-specific references def setup(app): app.add_crossref_type( directivename = "label", rolename = "djterm", indextemplate = "pair: %s; label", ) app.add_crossref_type( directivename = "setting", rolename = "setting", indextemplate = "p...
""" Contains utility functions to works with learning-object get many. """ def get_many(db_client, filter_, range_, sorted_, user, learning_object_format): """Get learning objects with query.""" start, end = range_ field, order = sorted_ user_role = user.get('role') user_id = user.get('id') ...
# # PySNMP MIB module SMON2-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/SMON2-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:59:43 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23...
delta_vector = [(1, 0), (0, -1), (-1, 0), (0, 1)] current_east_pos = 0 current_north_pos = 0 current_delta = 0 for _ in range(747): instruction = input() movement = instruction[0] value = int(instruction[1:]) if movement == 'N': current_north_pos += value if movement == 'S': curre...
""" Creating some co-ordinates with nested loops. Output will be something like (0,1) (0,2) (0,3) (1,0) (1,1) and so on. """ #Initiationg the loop for x in range(3): for y in range(3): print(f"({x}, {y})")
# input n = int(input()) cont1 = int(input()) conttot = 1 # grafo contador = 0 g = [[0 for i in range(n)] for j in range(n)] lista = input().split() for col in range(n): for linha in range(n): g[col][linha] = int(lista[contador]) contador += 1 if col == linha: g[col][linha] = 0 ...
class gbXMLConditionType(Enum,IComparable,IFormattable,IConvertible): """ This enumeration corresponds to the conditionType attribute in gbXML. The enumerated attribute identifies the type of heating,cooling, or ventilation the space has. enum gbXMLConditionType,values: Cooled (1),Heated (0),Heat...
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def maxDepth(self, root): """ :type root: TreeNode :rtype: int """ if root is None: r...
with open("Actions.txt") as f: print(f) lines = f.readlines() trim_list = list(map(lambda line: line.strip(), lines)) sig = "-- HERE --" sig_indx = trim_list.index(sig) pure_inst = trim_list[sig_indx:] print(pure_inst) res = [] for p in pure_inst: split = p.split(" ", 1) ...
# Contains dictionaries that map braille to English letters. letters = {chr(10241): 'a', chr(10243): 'b', chr(10249): 'c', chr(10265): 'd', chr(10257): 'e', chr(10251): 'f', chr(10267): 'g', chr(10259): 'h', chr(10250): '...
c = int() def hanoi(discs, main, target, aux): global c if discs >= 1: c = c + 1 hanoi(discs - 1, main, aux, target) print("[{}] -> Move disc {} from {} to {}".format(c, discs, main, target)) hanoi(discs - 1, aux, target, main) if __name__ == "__main__": discs = int(input()) hanoi(discs, "mai...
passagemAreiaDiurno=19 passagemAreiaNoturno=24 passagemPilarNoturno=26 passagemPilarDiurno=22 destino=str(input('digite o destino: ')).upper() horario=str(input('digite se o horário é diurno ou noturno: ')).upper() idade=int(input('digite sua idade: ')) if destino=='AREIA': if horario=='DIURNO': print('o ...
def f(): def g(): pass if __name__ == '__main__': g() print(1) f()
lst = [int(x) for x in input().split()] k = int(input()) lst.sort() print(lst[-k], end="")
n,k=map(int,input().split());a=[int(i) for i in input().split()];m=sum(a[:k]);s=m for i in range(k,n): s+=(a[i]-a[i-k]) if s>m:m=s print(m)
with open("day-02/input.txt", "r") as file: puzzle_input = [i.split() for i in file.readlines()] def part_1(puzzle_input): depth = 0 horizontal = 0 for command, value in puzzle_input: value = int(value) if command == "forward": horizontal += value elif command == ...
obj = { 'Profiles' : [ { 'Source' : 'sfmc_sg10004_programmes_genrelevel1fan548day_oc_uas_dae', 'Media': ['audio','video'], 'Preferences' : [ { 'Score' : 1, 'Label' : 'Religion & Ethics' }, { 'Score' : 4, 'Label' : 'Entertainment' }, { 'Score' : 5...
def kb_ids2known_facts(kb_ids): """ :param kb_ids: a knowledge base of facts that are already mapped to ids :return: a set of all known facts (used later for negative sampling) """ facts = set() for struct in kb_ids: arrays = kb_ids[struct][0] num_facts = len(arrays[0]) ...
""" 1025. Divisor Game Easy Alice and Bob take turns playing a game, with Alice starting first. Initially, there is a number N on the chalkboard. On each player's turn, that player makes a move consisting of: Choosing any x with 0 < x < N and N % x == 0. Replacing the number N on the chalkboard with N - x. Also, if...
''' Created on 05.03.2018 @author: Alex ''' class ImageSorterException(Exception): pass
# Copyright 2017 OpenStack Foundation # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
# coding=utf-8 """ Some utilities related to numbers. """ def is_even(num: int) -> bool: """Is num even? :param num: number to check. :type num: int :returns: True if num is even. :rtype: bool :raises: ``TypeError`` if num is not an int. """ if not isinstance(num, int): raise ...
# writing a function to find the maximum and minmimum integer in a list numbers = [] while True: inp = (input('Please enter a number: ')) if inp == 'done!': break try: val = int(inp) except: print('Invalid input') print('Please provide a n...
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def pathSum(self, root: TreeNode, sum: int) -> int: if not root: return 0 return self.dfs(root, sum) + self.p...
class Animal: nombre: str edad: int nPatas: int raza: str ruido: str color: str def __init__(self, nombre, edad, nPatas, raza, ruido, color): self.nombre = nombre self.edad = edad self.nPatas = nPatas self.raza = raza self.ruido = ruido ...
n1 = int(input('Um valor: ')) n2 = int(input('Outro valor: ')) soma = n1+n2 produto = n1*n2 quociente = n1/n2 resto = n1%n2 div_exata = n1//n2 potencia = n1**n2 print('A soma é {} \nO produto é {} \nO quociente é {} \nO resto é {} \nA divisão exata é {} \nA potência é {}' .format(soma, produto, quoci...
# This file is part of the Pygame SGE. # # The Pygame SGE is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # The Pygame SGE i...
# lab 1 # дан целочисленный массив А из N элементов. проверьте, # есть ли в нем элементы, равные нулю. если есть, найдите # номер первого из них, т. е. наименьшее i, при котором # элемент ai = 0. if __name__ == '__main__': lists = [ [1, 2, 3, 4], [4, 5, 1, 0, 22], [0, 1, 2], [42, 1,...
""" solution Adventofcode 2019 day 4 part 1. https://adventofcode.com/2019/day/4 author: pca """ def valid_pw(pw_str: int) -> bool: has_double = False if len(pw_str) != 6: return False max_digit = 0 prev_digit = -1 for ch in pw_str: cur_digit = int(ch) # decreasing ...
#A function to show the list of trait with categorial data def categorial_trait(dataframe): numeric, categorial = classifying_column(dataframe) print('Traits with categorial data : ','\n',categorial, '\n') print('Total count : ' ,len(categorial) , 'Traits')
ENDC = '\033[0m' OKGREEN = '\033[92m' def print_play_my_playlist(playlist_name, name_song, artist, total_time, prefix, bar, percent, suffix): print("\033[F"*13) print( f'{playlist_name} | {name_song} | {artist} | {total_time[:7]}', f'{prefix}|{OKGREEN}{bar}{ENDC}|{percent[:7]} {suffix}', ...
""" Constants """ MONGO_DOCKER_SERVICE = "db" MONGO_HOST = "192.168.99.100" MONGO_PORT = 27017 RABBIT_DOCKER_SERVICE = "rabbit" RABBIT_HOST = "192.168.99.100" RABBIT_PORT = 5672
""" texto = [x for x in input("Input: ") if x in "{}[]()"] if len(texto) % 2 != 0 or len(texto) == 0: validacion = False else: validacion = True i = 0 while 0 < len(texto) and validacion == "YES": if texto[i] in "{[(": i += 1 else: if texto[i - 1] + tex...
# -*- coding: utf-8 -*- """ pyglobi.config ~~~~~~~~~~~~ Configuration used by pyglobi :copyright: (c) 2019 by Chris Nicholas. :license: MIT, see LICENSE for more details. """ # Base URL's globi_neo_url = "https://neo4j.globalbioticinteractions.org/db/data/cypher" eol_url = "https://eol.org/pages" eol_geo_url = "htt...
class Stock(): def __init__(self,code,name,price): self.code = code self.name = name self.price = price def __str__(self): return 'code{},name{},price{}'.format(self.code,self.name,self.price)
"""Convert a Decimal Number to a Binary Number.""" def decimal_to_binary(decimal: int) -> str: rem , bin , c = 0 , 0 , 0 is_negative = '-' if decimal < 0 else '' decimal = abs(decimal) while decimal > 0: rem = decimal % 2 bin += rem * pow(10 , c) c += 1 decimal //= 2 ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Объявите функцию, которая возвращает переданную ей строку в нижнем регистре (с # малыми буквами). Определите декоратор для этой функции, который имеет один параметр # tag , определяющий строку с названием тега (начальное значение параметра tag равно # h1 ). Этот дек...
line = input().split() a = int(line[0]) b = int(line[1]) hour = 0 total = a burned = 0 while(total > 0): total -= 1 burned += 1 if(burned % b == 0): total += 1 hour += 1 print(str(hour))
class Solution(object): def merge(self, intervals): """ :type intervals: List[List[int]] :rtype: List[List[int]] """ length = len(intervals) if length == 0 or not intervals[0]: return intervals intervals = sorted(intervals, key=lambda x: x[0]) ...
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
text = 2 try: print(text) except NameError as error: print("NameError - Esse nome não existe:", error) except Exception as error: print("Exception - Vixi:", error) else: text +=1 print("Else:", text) finally: text = [] print("Finally:", text) print("Fora do bloco!")
# -*- coding: utf-8 -*- """ Resource module """ # pylint: disable=too-few-public-methods class Resource: """ Used for representing Conjur resources """ def __init__(self, type_:type, name:str): self.type = type_ self.name = name def full_id(self): """ Method for bu...
__package__ = 'tkgeom' __title__ = 'tkgeom' __description__ = '2D geometry module as an example for the TK workshop' __copyright__ = '2019, Zs. Elter' __version__ = '1.0.0'
''' Copyright (c) 2014, Aaron Westendorf All rights reserved. https://github.com/agoragames/pluto/blob/master/LICENSE.txt '''
def id(message): # Define empty variables fu_userid = False rt_userid = False rf_userid = False gp_groupid = False # the 'From User' data fu_username = message.from_user.username fu_userid = message.from_user.id fu_fullname = message.from_user.first_name.encode("utf-8") # check for 'Replied to' mess...
txt = "banana" x = txt.ljust(20) print(x, "is my favorite fruit.")
class Solution: def count_l(self, a_list: list): a, b = a_list return a*a + b*b def kClosest(self, points, K): """ :type points: List[List[int]] :type K: int :rtype: List[List[int]] """ m = list() tmp = dict() for point in point...
pkgname = "gnome-menus" pkgver = "3.36.0" pkgrel = 0 build_style = "gnu_configure" configure_args = ["--disable-static"] make_cmd = "gmake" hostmakedepends = [ "gmake", "pkgconf", "gobject-introspection", "glib-devel", "gettext-tiny" ] makedepends = ["libglib-devel"] pkgdesc = "GNOME menu definitions" maintainer = ...
#!/usr/bin/env python3 class BaseError(Exception): def __init__(self, message): self.message = message class LoggedOutError(BaseError): def __init__(self): super(LoggedOutError, self).__init__("User is currently not logged In") # self.message = "User is currently not logged In" cla...
# Copyright 2019 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
pkgname = "python-py" pkgver = "1.11.0" pkgrel = 0 build_style = "python_module" hostmakedepends = ["python-setuptools_scm"] checkdepends = ["python-pytest"] depends = ["python"] pkgdesc = "Python development support library" maintainer = "q66 <q66@chimera-linux.org>" license = "MIT" url = "https://github.com/pytest-de...
test_input = """35 20 15 25 47 40 62 55 65 95 102 117 150 182 127 219 299 277 309 576 """ def find_number(numbers, preamble_size): for number_index in range(preamble_size, len(numbers)): number = numbers[number_index] breaked = False start = number_index - preamble_size for first_...
class Entrada: quantidade_de_recursos = 3 quantidade_de_processos = 5 # coluna recurso alocados + qntd recurso disponível quantidade_total_de_cada_recurso = [10, 5, 7] matriz_de_recursos_ja_alocados = [ [0, 1, 0], [2, 0, 0], [3, 0, 2], [2, 1, 1], [0, 0, 2] ...
n = int(input()) nums = list(map(int, input().strip().split())) print(min(nums) * max(nums))
line = Line() line.xValues = [2, 1, 3, 4, 0] line.yValues = [2, 1, 3, 4, 0] plot = Plot() plot.add(line) plot.save("unordered.png")
''' Created on Oct 31, 2013/.>" @author: rgeorgi ''' class TextParser(object): ''' classdocs ''' def parse(self): pass def __init__(self): ''' Constructor ''' class ParserException(Exception): pass
# -*- coding: utf-8 -*- """ 999. Available Captures for Rook On an 8 x 8 chessboard, there is one white rook. There also may be empty squares, white bishops, and black pawns. These are given as characters 'R', '.', 'B', and 'p' respectively. Uppercase characters represent white pieces, and lowercase characters repres...
class UIColors: "color indices for UI (c64 original) palette" white = 2 lightgrey = 16 medgrey = 13 darkgrey = 12 black = 1 yellow = 8 red = 3 brightred = 11
# Time: O (N ^ 2) | Space: O(N) def arrayOfProducts(array): output = [] for i in range(len(array)): product = 1 for j in range(len(array)): if i != j: product = product * array[j] output.append(product) return output # Time: O(N) | Space: O(N) def array...
# -*- coding = utf-8 -*- # @Time:2021/2/2821:58 # @Author:Linyu # @Software:PyCharm def response(flow): print(flow.request.url) print(flow.response.text)
# example of how to display octal and hexa values a = 0o25 b = 0x1af print('Value of a in decimal is ', a) c = 19 print('19 in octal is %o and in hex is %x' % (c, c)) d = oct(c) e = hex(c) print('19 in octal is', d, ' and in hex is ', e)
states_in_order_of_founding = ("Delaware", "Pennsylvania", "New Jersey", "Georgia") # You use parentheses instead of square brackets. print(states_in_order_of_founding) second_state_founded = states_in_order_of_founding[1] print("The second state founded was " + second_state_founded)
#!/usr/bin/python # -*- coding: utf-8 -*- nitram_micro_mono_CP437 = [ 0, 0, 0, 0, 0, 10, 0, 4, 17, 14, 10, 0, 0, 14, 17, 27, 31, 31, 14, 4, 0, 0, 0, 0, 0, 0, 4, 10, 4, 14, 4, 14, 14, 4, 14, 0, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 4, 10, 4, 0, 0, 0, 0, 0, 0, 30, 28, 31, 21, 7...
def is_same_string(string1, string2): if len(string1) != len(string2): return False else: for i in range(len(string1)): if string1[i] != string2[i]: return False return True def reverse_string(string): gnirts = '' for i in range(len(string)):...
class AccessKeyEventArgs(EventArgs): """ Provides information for access keys events. """ IsMultiple=property(lambda self: object(),lambda self,v: None,lambda self: None) """Gets a value that indicates whether other elements are invoked by the key. Get: IsMultiple(self: AccessKeyEventArgs) -> bool """ ...
class PretreatedQuery: ''' DBpedia resultat ''' def __init__(self, mentions_list, detected_ne): ''' Constructor ''' self.mentions_list=mentions_list self.detected_ne=detected_ne