instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Napiš v JavaScriptu: sum array. | ```javascript const sum = arr => arr.reduce((a,b)=>a+b, 0); ``` | null | |
null | null | null | Audrey Bitoni
Audrey Bitoni (* 16. srpna 1986 Pasadena, Kalifornie, USA) je americká pornografická herečka italského původu. Životopis V současnosti (2017) žije v Los Angeles a živí se natáčením pornografických filmů. Je držitelkou řady ocenění; v roce 2008 se objevila na hlavní straně erotického časopisu Penthouse. E... |
Stručně shrň článek o tématu „Římskokatolická farnost Purkarec“ a uveď hlavní fakta. | **Římskokatolická farnost Purkarec**
Římskokatolická farnost Purkarec byla územním společenstvím římských katolíků v rámci vikariátu České Budějovice - venkov českobudějovické diecéze. O farnosti Historie Vesnice Purkarec se původně jmenovala Karlshaus a plebánie je zde doložena v roce 1364. V 15. až 17. století bylo ... | null | |
Summarize key facts about „Inula royleana“ clearly and accurately. | **Inula royleana**
Inula royleana is a species of plant in the daisy family Asteraceae. It is native to Pakistan and the western Himalayas. References External links Plants for a Future Inula royleana royleana Flora of Asia | null | |
Summarize key facts about „Ourauwhare River“ clearly and accurately. | **Ourauwhare River**
The Ourauwhare River is a river of the Auckland Region of New Zealand's North Island. It is a tributary of the Kaukapakapa River, which it meets south of Helensville. See also List of rivers of New Zealand References Rivers of the Auckland Region Kaipara Harbour catchment | null | |
Implement a version of your own version of quicksort in Python | def quicksort(arr): if len(arr) <= 1: return arr pivot = arr[0] left = [] right = [] for num in arr[1:]: if num < pivot: left.append(num) else: right.append(num) return quicksort(left) + [pivot] + quicksort(right) if __name__ == '__main__': arr = [7, 3, 1, 9, 0] print(quicksort(arr)) | null | |
Ukaž čistý kód: převod na velká písmena. Pojmenuj funkci `to_upper`. | ```python def to_upper(s: str) -> str: return s.upper() ``` | null | |
Summarize key facts about „Philomène Bassek“ clearly and accurately. | **Philomène Bassek**
Philomène Isabelle Bassek (born 1957) is a Cameroonian author writing in French. She was born Philomène Isabelle Mandeng in Dschang in western Cameroon and was educated at the University of Yaoundé. Bassek has lived in Yaoundé with her husband and three sons since 1970. She has taught at the Lycée... | null | |
Stručně shrň článek o tématu „Aigrefeuille-d'Aunis“ a uveď hlavní fakta. | **Aigrefeuille-d'Aunis**
Aigrefeuille-d'Aunis je francouzská obec v departementu Charente-Maritime v regionu Poitou-Charentes. V roce 2010 zde žilo 3 707 obyvatel. Je centrem kantonu Aigrefeuille-d'Aunis. Vývoj počtu obyvatel Související články Seznam obcí v departementu Charente-Maritime Externí odkazy Reference Obce... | null | |
null | null | null | Zlatá (rozcestník)
Pojem Zlatá má více významů: název sídla Zlatá - obec v okrese Praha-Východ Zlatá (Kynšperk nad Ohří) - osada, část města Kynšperk nad Ohří Zlatá (vojenský újezd Boletice) - zaniklá osada v okrese Český Krumlov Zlatá Koruna - obec v okrese Český Krumlov název ulice Zlatá (ulice v Praze) - ulice v Pr... |
Create an HTML form with one input field which requests the user's name. | <form action="" method="get"> <label for="name">Name:</label> <input type="text" id="name" name="name" required> <input type="submit" value="Submit"> </form> | null | |
Stručně shrň článek o tématu „Turbina“ a uveď hlavní fakta. | **Turbina**
Turbina je český film z roku 1941 natočený režisérem Otakarem Vávrou podle předlohy Karla Matěje Čapka-Choda. Hlavní ženskou roli ztvárnila Lída Baarová, císařského radu Ullika František Smolík. Děj filmu se odehrává v 19. století, kdy rodina císařského rady Ullika zažívá přerod od tradičních společenských... | null | |
Write a Python code to find all the prime numbers below a given number. | def get_primes(n): primes = [] for num in range(2, n+1): is_prime = True for div in range(2, n): if (num % div == 0): is_prime = False if is_prime: primes.append(num) return primes | null | |
Summarize key facts about „Rhododendron subg. Pentanthera“ clearly and accurately. | **Rhododendron subg. Pentanthera**
Rhododendron subgenus Pentanthera was a subgenus of the genus Rhododendron. The common name azalea is applied to many of the species, and also to species in some other subgenera. In 2005 it was discontinued and its four sections moved or dismembered. The subgenus included four sectio... | null | |
Stručně shrň článek o tématu „Jednotná Abcházie“ a uveď hlavní fakta. | **Jednotná Abcházie**
Jednotná Abcházie (abchazsky: Аԥсны Акзаара) je politická strana v Abcházii. Jednotná Abcházie byla založená 25. března 2004 jako socio-politické hnutí s jasnými cíli, reprezentovanými jejich jediným kandidátem do prezidentských voleb konaných ve stejném roce. Dějiny Dne 20. července 2004 vytvoři... | null | |
Suggest a code snippet to detect a cycle in a linked list | def contains_cycle(head): slow = head fast = head while fast is not None and fast.next is not None: fast = fast.next.next slow = slow.next if slow is fast: return True return False | null | |
Draft a Python code to sort an array containing 3 integers in ascending order. | Array=[5,2,8] | Array.sort() print(Array) # prints [2,5,8] | null |
Kolik je 25 - 11? | 25 - 11 = 14 | null | |
Summarize key facts about „Where Are You Going, Alfonso XII?“ clearly and accurately. | **Where Are You Going, Alfonso XII?**
Where Are You Going, Alfonso XII? () is a 1959 Spanish historical drama film directed by Luis César Amadori and starring Paquita Rico and Vicente Parra. It portrays the life of Alfonso XII of Spain and Maria de las Mercedes. It was followed by a sequel Alfonso XII and María Cristi... | null | |
Spočítej: 4 + 2 = ? | 4 + 2 = 6 | null | |
What data structure is most appropriate for fast searches? | A hash table is the most appropriate data structure for fast searches. | null | |
Kolik je 29 - 3? | 29 - 3 = 26 | null | |
null | null | null | Saturn (planeta)
Saturn je v pořadí planet na šestém místě a po Jupiteru druhá největší planeta sluneční soustavy. Planeta byla pozorována již starověkými astronomy a byla pojmenována po římském bohu Saturnovi, který byl obdobou řeckého boha Krona. Astronomický symbol pro Saturn je ♄. Saturn patří mezi velké plynné ob... |
Edit the following React component to make the text input to accept only number values. | <input type="text" value={value} onChange={handleChange} /> | <input type="number" value={value} onChange={handleChange} /> | null |
null | null | null | Matthias Müller
Matthias Müller (* 12. září 1982, Švýcarsko) je švýcarský reprezentant v orientačním běhu, jenž v současnosti žije ve švýcarském Winterthuru. Jeho největším úspěchem je mistrovský titul ze sprintu na Mistrovství světa v roce 2010 v Trondheimu. V současnosti běhá za švédský klub Södertälje-Nykvarn a za ... |
Summarize key facts about „Advisory Centre on World Trade Organization Law“ clearly and accurately. | **Advisory Centre on World Trade Organization Law**
The Advisory Centre on WTO Law (ACWL) is an international organisation established in 2001 to provide legal advice on WTO law, support in WTO dispute settlement proceedings and training in WTO law to least developed countries, developing countries and customs territo... | null | |
null | null | null | Guus Kuijer
Guus Kuijer (* 1. srpna 1942, Amsterdam, Nizozemsko) je jedním z nejvýznamnějších nizozemských spisovatelů pro děti a mládež a jediný nizozemský laureát mezinárodní Ceny Astrid Lindgrenové (2012), která bývá označována jako Nobelova cena pro dětskou literaturu. V roce 2008 byl jako autor dětské literatury ... |
Oprav kód: ```python import json json.loads("{a:1}") ``` | JSON vyžaduje uvozovky u klíčů: `json.loads('{"a": 1}')`. Opravená verze podle vysvětlení výše. | null | |
Kolik je 20 × 9? | 20 × 9 = 180 | null | |
Summarize key facts about „Polivoks“ clearly and accurately. | **Polivoks**
The Polivoks (also occasionally referred to as the Polyvox; ) is a duophonic, analog synthesizer manufactured and marketed in the Soviet Union between 1982 and 1990. It is arguably the most popular and well-known Soviet synthesizer in the West, likely due to the uniqueness of both its appearance and sound... | null | |
Create a function to normalize a given pandas dataframe. | def normalize_df(df): normalized_df=(df-df.min())/(df.max()-df.min()) return normalized_df norm_df = normalize_df(df) | null | |
Spočítej 19×5 | 19 × 5 = 95 | null | |
Stručně shrň článek o tématu „Dušení (vaření)“ a uveď hlavní fakta. | **Dušení (vaření)**
Dušení je tepelná úprava pokrmu velmi podobná vaření s tím rozdílem, že se používá menší množství vody a pokrm se vaří pod pokličkou převážně ve vlastní šťávě. Tím dojde k uchování a zvýraznění charakteristické chuti pokrmu. Kromě masa se dušením upravuje zelenina a také houby. Tento způsob je šetr... | null | |
Add the code for a sleep() function to the following script. | #This script will be used to write a status update in Slack. import os def update_status(message): os.system('curl -X POST --data '{ "text": "' + message + '"}'' .....) | #This script will be used to write a status update in Slack. import os import time def update_status(message): os.system('curl -X POST --data '{ "text": "' + message + '"}'' .....) time.sleep(1) | null |
null | null | null | Włodzimierz Staniewski
Włodzimierz Staniewski (born in 1950 in Bardo, Poland) is a Polish theatre and film director, founder and director of the Gardzienice Centre for Theatre Practices. Author of international programmes, actor training, essays, and plays. Awards 1990: Diploma from the minister of foreign affairs for... |
Stručně shrň článek o tématu „Daniel Černý (fotbalista)“ a uveď hlavní fakta. | **Daniel Černý (fotbalista)**
Daniel Černý (* 19. července 1994, Plzeň) je český fotbalový útočník a bývalý mládežnický reprezentant, od července 2012 působící v FC Viktoria Plzeň. Klubová kariéra Svoji fotbalovou kariéru začal v FC Viktoria Plzeň, kde prošel všemi mládežnickými kategoriemi. FC Viktoria Plzeň V roce 2... | null | |
Summarize key facts about „Rauluni“ clearly and accurately. | **Rauluni**
Raulumi is a surname. Notable people with the surname include: Jacob Rauluni (born 1972), Fijian rugby union player Mosese Rauluni (born 1975), Fijian rugby union player, brother of Jacob Unaisi Rauluni (born 1994), Fijian netball player Fijian-language surnames | null | |
Summarize key facts about „Zachary Carter“ clearly and accurately. | **Zachary Carter**
Zachary Carter (born April 7, 1999) is an American football defensive tackle for the Cincinnati Bengals of the National Football League (NFL). He played college football at Florida. Early life and high school Carter grew up in Tampa, Florida and attended Hillsborough High School. Carter was rated a ... | null | |
Given a string, what is the best way to reverse the characters in it? | <noinput>> | """ The best way to reverse the characters in a string is by using the slicing option of a string object. The string slicing reverses a string by slicing it from the end of the string and going to the beginning of the string. This can be done with the following syntax: string_name[::-1] For example, to reverse the stri... | null |
Kolik je 8 × 2? | 8 × 2 = 16 | null | |
Stručně shrň článek o tématu „Kostel svatého Jana Křtitele (Dolní Žďár)“ a uveď hlavní fakta. | **Kostel svatého Jana Křtitele (Dolní Žďár)**
Kostel svatého Jana Křtitele je římskokatolický kostel v Dolním Žďáru. Dolní Žďár je součástí Horního Žďáru, se kterým se stal po 2. sv. válce částí obce Hajnice. Kostel je chráněn jako kulturní památka České republiky. Historie Původně jednolodní gotický kostel byl založe... | null | |
null | null | null | The Whispers
The Whispers je R&B/dance kapela s dlouholetou historií, která byla založena v Los Angeles, Kalifornii. Kapela se skládala z Leaveila Degreeho, Marcuse Hutsona, Nicholase Caldwella, Wallace Scotta a Waltera Scotta. Nahrávky kapely byly publikovávány u SOLAR Records (v USA) a u RCA Records (v Evropě). Mezi... |
Stručně shrň článek o tématu „Jihočeská Theléma“ a uveď hlavní fakta. | **Jihočeská Theléma**
Jihočeská Theléma byl kroužek mladých českých romanistů, kteří se rozhodli přeložit do češtiny jedno ze stěžejních a nejnesnadnějších děl světové literatury, Gargantuu a Pantagruela od Françoise Rabelaise. Iniciátorem kroužku byl docent pražské filozofické fakulty Prokop Miroslav Haškovec (1876–1... | null | |
null | null | null | Miloš Hlavica
Miloš Hlavica (29. října 1933 Praha – 12. srpna 2015 Praha) byl český herec a malíř, manžel herečky Růženy Merunkové, bratr operního pěvce Pavla Hlavici, otec Marka Hlavici, herce Lukáše Hlavici a herečky Anny Bendové (zemřela 11.09.2008, 33 let), a tchán herečky Kláry Melíškové. Život Pocházel z uměleck... |
Create a CSS style sheet to change the font color of an heading to red. | h1 { color: red; } | null | |
null | null | null | Serrat
Serrat is a surname. Notable people with the surname include: Joan Manuel Serrat (born 1943), Spanish singer-songwriter Fabienne Serrat (born 1956), French alpine ski racer Sara Serrat (born 1995), Spanish footballer Julian Serrat, fictional character on the NBC series Last Resort Catalan-language surnames |
Stručně shrň článek o tématu „Salon vín“ a uveď hlavní fakta. | **Salon vín**
Salon vín – národní soutěž vín ČR je finální soutěží systému Národní soutěže vín. V rámci soutěže je každý rok vybráno nejlepší víno s titulem "Šampion", dále "Vítězové kategorií" a "Nejlepší kolekce". Sto nejlepších vín soutěže je oceněno prestižním titulem "Salon vín ČR". Na vlastní soutěž navazuje cel... | null | |
Stručně shrň článek o tématu „Vůz WRm812, 813 ČD“ a uveď hlavní fakta. | **Vůz WRm812, 813 ČD**
{{DISPLAYTITLE:Vůz WRm812, 813 ČD}} Vozy WRm812 a WRm813, obě řady shodně číslovány v intervalu 51 54 88-81, byly jídelní vozy provozované Českými drahami. Byly vyrobeny v roce 1978 ve vagónce VEB Waggonbau Bautzen. Technický popis Byly to první vozy typu UIC-Z délky 26 400 mm u tehdejších Česko... | null | |
Stručně shrň článek o tématu „Pilot Pen Tennis 2008 – ženy“ a uveď hlavní fakta. | **Pilot Pen Tennis 2008 – ženy**
Tenisový turnaj na okruhu WTA Pilot Pen Tennis 2008 se konal ve dnech 15. - 23. srpna v americkém New Havenu venku na kurtech s tvrdým povrchem. Odměny činily 600,000 USD. Dvouhra Nasazení hráček Ceny a body do žebříčku Pavouk Finálová fáze Horní polovina Dolní polovina Čtyřhra Nasazen... | null | |
create a function to compare two strings and return a boolean depending on their equality or inequality. | string1 = 'hello' string2 = 'world' | def compare_strings(string1, string2): """ This function will compare two strings and return a boolean depending on their equality or inequality. """ is_same = string1 == string2 return is_same string1 = 'hello' string2 = 'world' print(compare_strings(string1, string2)) | null |
Create an array of nicknames for characters in the Lord of the Rings | Frodo - Hobbit; Gandalf - Wizard; Legolas - Elf; | nicknames = { 'Frodo': 'Halfling', 'Gandalf': 'Grey Wizard', 'Legolas': 'Prince of Mirkwood' } | null |
Summarize key facts about „Chaturanga (film)“ clearly and accurately. | **Chaturanga (film)**
Chaturanga () is a 2008 Indian Bengali-language film directed by Suman Mukherjee, starring Rituparna Sengupta, Dhritiman Chaterji, Subrata Dutta, Joy Sengupta and Kabir Suman. Based on the 1916 novel, Chaturanga, by author Rabindranath Tagore the film is about a love caught between conflicting wo... | null | |
What is 11 - 2? | 11 - 2 = 9 | null | |
null | null | null | Buttrose
Buttrose is a surname. Notable people with the surname include: Ita Buttrose (born 1942), Australian journalist and businesswoman Larry Buttrose (born 1952), Australian writer, journalist, and academic Stroma Buttrose (born 1929), Australian architect See also Butters (surname) |
Stručně shrň článek o tématu „Jiří Vlach (sochař)“ a uveď hlavní fakta. | **Jiří Vlach (sochař)**
Akademický sochař Jiří Vlach (* 14. srpna 1946 Žarošice) je český sochař, medailér a pedagog. Jedná se o akademického sochaře, který vyučuje na (Střední uměleckoprůmyslové škole v Uherském Hradišti) od roku 1974, tuto školu také sám vystudoval v letech 1961-1965, dále pak studoval Vysoká škola ... | null | |
Write an Arduino program to blink an LED once every two seconds. | void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(2000); digitalWrite(LED_BUILTIN, LOW); delay(2000); } | null | |
Write a database query to retrieve the names of all authors. | SELECT name FROM authors; | null | |
Write a Pandas code to drop all rows with missing values from a given dataframe. | Dataframe name: df | df.dropna(inplace=True) | null |
Construct a function to convert feet to meters. | def feet_to_meters(feet): """This function converts feet to meters""" meters = feet * 0.3048 return meters | null | |
Stručně shrň článek o tématu „OB“ a uveď hlavní fakta. | **OB**
Kombinace písmen O a B může znamenat: Ob Ob – ruská řeka Ob (město) – město v Novosibirské oblasti v Ruské federaci Ob. italská hudební zkratka pro oboe – hoboj OB zkratka pro Obec baráčníků zkratka pro orientační běh poznávací značka letadel Peru ob. latinská zkratka slova obiit – zemřel ob česká předložka Sou... | null | |
You are given a code snippet of a web page. Fill in the missing tags to make it valid HTML. | <html> <head> <title>My Homepage</title> </head> <body> <h1>Welcome to My Homepage</h1> <p>Hello, I'm John and this is my homepage. This is where I share my interests with the world.</p> </body> </html> | <html> <head> <title>My Homepage</title> </head> <body> <h1>Welcome to My Homepage</h1> <p>Hello, I'm John and this is my homepage. This is where I share my interests with the world.</p> </body> </html> | null |
Stručně shrň článek o tématu „Remek (planetka)“ a uveď hlavní fakta. | **Remek (planetka)**
(2552) Remek je planetka obíhající v hlavním pásu planetek mezi Marsem a Jupiterem. Byla objevená 24. září 1978 Antonínem Mrkosem na Hvězdárně na Kleti. Název získala po prvním československém kosmonautovi Vladimíru Remkovi, který se téhož roku v březnu zúčastnil vesmírné mise Sojuz 28. Odkazy Ref... | null | |
Summarize key facts about „List of Nicholls Colonels football seasons“ clearly and accurately. | **List of Nicholls Colonels football seasons**
This is a list of seasons completed by the Nicholls Colonels football team of the National Collegiate Athletic Association (NCAA) Division I Football Championship Subdivision (FCS), representing Nicholls State University in the Southland Conference. Nicholls plays their h... | null | |
Write a jQuery code to show an alert when the button is clicked. | $('#btn').click(function(){ alert('Button clicked!'); }); | null | |
How can we optimize the performance of the given code? | myList = [1, 2, 3] for item in myList: print(item) | Use list comprehension to reduce the amount of code used, such as: print([item for item in myList]) | null |
How would you reverse a singly linked list without using any additional data structures? | One way to reverse a singly linked list without using any additional data structures is to iterate through the linked list, while keeping track of the current node's predecessor and successor. At each iteration, store the predecessor and successor, remove the link from the predecessor to the current node,and link the c... | null | |
null | null | null | Nones (liturgy)
Nones (), also known as None (, "Ninth"), the Ninth Hour, or the Midafternoon Prayer, is a fixed time of prayer of the Divine Office of almost all the traditional Christian liturgies. It consists mainly of psalms and is said around 3 pm, about the ninth hour after dawn. In the Roman Rite the Nones it i... |
Stručně shrň článek o tématu „Ota Ginz“ a uveď hlavní fakta. | **Ota Ginz**
Ota Ginz (19. července 1896 Ždánice – 29. února 1976) byl esperantista a úředník. Otec česko-židovského chlapce Petra Ginze zavražděného nacisty, jehož kresba měsíční krajiny se stala světoznámým symbolem holokaustu. Se svou ženou Marií Ginzovou se seznámil na jednom z esperantských kongresů. Měli spolu d... | null | |
Stručně shrň článek o tématu „Wang Ja-pching“ a uveď hlavní fakta. | **Wang Ja-pching**
Wang Ja-pching (; * 27. ledna 1980, Jen-tchaj, Šan-tung) je čínská vojenská pilotka a kosmonautka – 531. člověk ve vesmíru. V červnu 2013 vzlétla v lodi Šen-čou 10 ke svému prvnímu kosmickému letu jako druhá čínská kosmonautka, v říjnu 2021 ji pak loď Šen-čou 13 dopravila k Vesmírné stanici Tchien-k... | null | |
Stručně shrň článek o tématu „Knížecí Studánky“ a uveď hlavní fakta. | **Knížecí Studánky**
Knížecí Studánky jsou hájovna a přilehlá studánka v brdských lesích nedaleko Stožce. Hájovna se nachází na křižovatce cest z Voznice, Stožce a Dobříše nedaleko hranice obory Aglaja. Studánka se nachází přibližně sto metrů severně od hájenky. Do studánky je voda přiváděna téměř 300 metrů dlouhým po... | null | |
null | null | null | Sarah Lindsay Schmidt
Sarah Lindsay Schmidt (August 24, 1877 – January 31, 1965) was an American writer of children's literature. Her book New Land was a Newbery Honor recipient in 1934. Biography Sarah Lindsay was born in Chicago, Illinois, on August 24, 1877. Her grandfather, Thomas Milner, had been the city's first... |
Create a class for a Rectangle with attributes for its length and width, and methods to calculate its area, perimeter and diagonal. | class Rectangle: def __init__(self, length, width): self.length = length self.width = width def area(self): return self.length * self.width def perimeter(self): return (2*self.length) + (2*self.width) def diagonal(self): return (self.length**2 + self.width**2)**0.5 | null | |
Create a function that generates a random string of length n using alphabet characters. | import string import random def random_string_generator(n): letters = string.ascii_letters return ''.join(random.choice(letters) for i in range(n)) | null | |
Construct a program to filter the list of names based on the given condition. | names = ["Ada", "Bob", "Chris", "David", "Elsa", "Frank"] condition: length greater than 4 | ["Ada", "Chris", "David", "Elsa", "Frank"] | null |
Create a function to convert a given integer to a string in Python. | def intToStr(n): return str(n) # Driver Program intNum = 55 # Print the output print(intToStr(intNum)) | null | |
Summarize key facts about „Kitanagoya“ clearly and accurately. | **Kitanagoya**
is a city in Aichi Prefecture, Japan. , the city had an estimated population of 86,068 in 36,904 households, and a population density of . The total area of the city is . Kitanagoya is a member of the World Health Organization’s Alliance for Healthy Cities (AFHC). Geography Kitanagoya is located in the ... | null | |
null | null | null | Flaming Feather
Flaming Feather is a 1952 American Technicolor Western film directed by Ray Enright and starring Sterling Hayden. The film was shot on location around Oak Creek Canyon near Sedona, Arizona, and at the Montezuma Castle National Monument near Sedona. The local Yavapai Indians, who were employed as extras... |
Compute the modulo of following two numbers | 56 % 7 | 0 | null |
Napiš SQL: vyber 4 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 4; ``` | null | |
Kolik je 16 × 6? | 16 × 6 = 96 | null | |
Develop a program to encode and decode a given string. | Input a string s to be encoded. | def encode(s): encoded_str = "" for i in s: encoded_str += str(ord(i)) return encoded_str def decode(s): decoded_str = "" for i in range(0, len(s), 2): decoded_str += chr(int(s[i:i+2])) return decoded_str | null |
Write a SQL query to find all flights departing from a given location after a given date and time. | StartCity: NYC Date/Time: March 16, 2021 8:00 AM | SELECT flightno, startcity, starttime FROM flights WHERE startcity = 'NYC' AND starttime > '2021-03-16 08:00:00'; | null |
Kolik je 4 × 11? | 4 × 11 = 44 | null | |
null | null | null | Palembang P2
Palembang P2 či Palembang II (též jenom P2, P.2, P II nebo Gloembang a Karangendah) bylo utajované vojenské letiště vybudované Nizozemci asi 32 mil (asi 51 km) jihozápadně od dnešního Palembangu na Sumatře a používané za druhé světové války. Jeho poloha je uváděna jako nebo . Dnes je letiště mimo provoz a... |
Output the code for a function to generate the Fibonacci sequence up to the given number n. | def generate_fibonacci(n): fibonacci_list = [0, 1] i = 1 while i < n: fibonacci_list.append(fibonacci_list[i] + fibonacci_list[i-1]) i = i + 1 return fibonacci_list | null | |
Name a data structure to store a large set of strings efficiently. | The best data structure to store a large set of strings efficiently is a hash table. A hash table uses a hash function to map a set of strings to unique indices in an array, which allows for constant time lookups and operations. | null | |
null | null | null | Seznam států světa podle kontinentů
Seznam států světa podle kontinentů, obsahuje jména států a jejich hlavních měst (v závorce jméno v místním jazyce). 196 nezávislých států, z toho 193 členských států Organizace spojených národů Vatikán, jenž není členem OSN, ale OSN ho uznává a má status pozorovatele OSN. Cookovy o... |
Stručně shrň článek o tématu „Salle des Traditions de la Garde Républicaine“ a uveď hlavní fakta. | **Salle des Traditions de la Garde Républicaine**
Salle des Traditions de la Garde Républicaine (Sál tradic Republikánské gardy) je muzeum v Paříži. Nachází se ve 4. obvodu na Boulevardu Henri-IV. Muzeum se zaměřuje na dějiny francouzské Republikánské gardy. Historie Muzeum je umístěno v kasárnách na místě bývalého ce... | null | |
Summarize key facts about „Governor of Nenets Autonomous Okrug“ clearly and accurately. | **Governor of Nenets Autonomous Okrug**
The governor of Nenets Autonomous Okrug () is the head of the executive branch of the Nenets Autonomous Okrug, a federal subject of Russia located in the north-west of the country's European part. The Governor is elected by the Assembly of Deputies of Nenets Autonomous Okrug for... | null | |
Implement a binary search algorithm in Python for searching for a specific element in a given list of numbers. | list = [1, 3, 5, 7, 9, 11 ] and target number =7 | def binary_search(lst, target): """ Implements a binary search algorithm in Python for searching for a specific element in the given list of numbers. """ low = 0 high = len(lst)-1 while low <= high: mid = (low + high)//2 if lst[mid] == target: return mid elif lst[mid] < target: low = mid + 1 else: high = mid - 1 return... | null |
Summarize key facts about „Topanga Canyon Blues Festival“ clearly and accurately. | **Topanga Canyon Blues Festival**
The Topanga Canyon Blues Festival is an annual event held in California, attracting blues acts from across the United States. It began in 1982. Like the Orange County Blues Festival, it attracts some of the major blues artists in the United States. Over the years the festival has been... | null | |
Summarize key facts about „Susan Chitty“ clearly and accurately. | **Susan Chitty**
Lady Susan Chitty (18 August 1929 – 13 July 2021) was an English novelist and a writer of biographies. Her memoir on her mother, which was viewed as a "literary assassination", caused an uproar with writers and family. Early life Her mother was Antonia White, a famed novelist, and her father was Rudol... | null | |
null | null | null | Eastern dwarf tree frog
The eastern dwarf tree frog (Litoria fallax), also known as the eastern sedge-frog, is a species of tree frog. It is a small and very common frog and found on the eastern coast of Australia, from around Cairns, Queensland, to around Ulladulla, New South Wales. Individual frogs of this species a... |
Summarize key facts about „Gushi Kola“ clearly and accurately. | **Gushi Kola**
Gushi Kola (, also Romanized as Gūshī Kolā; also known as Gūshtī Kolā) is a village in Talarpey Rural District, in the Central District of Simorgh County, Mazandaran Province, Iran. In 2006, its population was 309, in 88 families. References Populated places in Simorgh County | null | |
Create a PHP script to generate a valid checksum of a given string. | <?php function getChecksum($string) { // Get the seed used $seed = (string) md5($string); $checkSum = 0; // Calculate the checksum foreach(str_split($string) as $char){ $checkSum += ord($char)*$seed[$checkSum % 32]; } // Return the checksum return $checkSum; } ?> | null | |
Kolik je 10 × 3? | 10 × 3 = 30 | null | |
Stručně shrň článek o tématu „Trestné střílení (lední hokej)“ a uveď hlavní fakta. | **Trestné střílení (lední hokej)**
Samostatný nájezd v ledním hokeji je forma trestného střílení, které je přesně definováno pravidly ledního hokeje. Jedná se o herní situaci, kdy útočící hráč sám resp. zcela samostatně bez pomoci svých spoluhráčů útočí na samostatného hokejového brankáře. Čili jedná se o stav jednoho... | null | |
Summarize key facts about „Derek Hitchins“ clearly and accurately. | **Derek Hitchins**
Derek K. Hitchins (born 1935) is a British systems engineer and was professor in engineering management, in command & control and in systems science at Cranfield University at Cranfield, Bedfordshire, England. Biography Hitchins joined the Royal Air Force in 1952 as an apprentice and retired as a wi... | null | |
Summarize key facts about „Pākuratahi River“ clearly and accurately. | **Pākuratahi River**
The Pākuratahi River, previously the Pakuratahi River, is a river of the Wellington Region of New Zealand's North Island. It flows northwest from its source in the Remutaka Range east of Lower Hutt to join the Te Awa Kairangi / Hutt River near Kaitoke. In December 2019, the approved official geogr... | null | |
pokračuj | Jasně — v čem mám pokračovat? Doplň prosím kontext (kód/úkol). | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.