instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
In HTML, write a code to create an input field to get an email address from a user. | <input type="email" name="email" placeholder="Enter email address"> | null | |
Create a Swift class which includes one constant, one variable and one function. | class MyClass { let constant = "constant value" var variable = 0 func increase() { variable += 1 } } | null | |
What is 13 - 4? | 13 - 4 = 9 | null | |
null | null | null | Vrh svislý
Vrh svislý je pohyb tělesa v homogenním gravitačním poli, při kterém počáteční rychlost tělesa má směr svisle vzhůru – proti směru gravitační síly. Kromě gravitační síly nepůsobí na těleso žádná další síla (příp. jsou další síly zanedbatelné). Vrh svislý je v první fázi (pohyb nahoru) rovnoměrně zrychlený p... |
Find the maximum element in a given array (unsorted) using a linear search approach. | [10, 5, 15, 80, 25] | """ Find the maximum element in a given array (unsorted) using a linear search approach """ def linear_search_max(arr): max_element = arr[0] for elem in arr[1:]: if elem > max_element: max_element = elem return max_element if __name__ == '__main__': arr = [10, 5, 15, 80, 25] max_element = linear_search_max(arr) print(m... | null |
null | null | null | Markíza Doma
Markíza Doma je soukromá slovenská televizní stanice programově zaměřena na cílovou skupinu mladých aktivních lidí ve věku 12–54 let. Zároveň je to v pořadí druhá televize vysílající na Slovensku, která patří skupině CME. Markíza Doma vysílá 24 hodin denně. V roce 2014 byla Markíza Doma 4.–5. nejsledovaně... |
null | null | null | Hampshire, Prince Edward Island
Hampshire is a rural municipality in Prince Edward Island, Canada. It was incorporated in 1974 and has a population of 339. Demographics In the 2021 Census of Population conducted by Statistics Canada, Hampshire had a population of living in of its total private dwellings, a change of f... |
null | null | null | Bathory (hudební skupina)
Bathory byla švédská black/viking/thrashmetalová skupina Tomase „Quorthona“ Forsberga. Byla založena 1983 ve Vällingby, Švédsko. Pojmenovaná po maďarské hraběnce Báthory. Z počátku zpíval Björn Kristensen, ale roku 1983 se ujal mikrofonu Quorthon. Skladby často délkou přesahovaly 9 minut. Sku... |
Summarize key facts about „1980 Jackson State Tigers football team“ clearly and accurately. | **1980 Jackson State Tigers football team**
The 1980 Jackson State Tigers football team represented Jackson State University as a member of the Southwestern Athletic Conference (SWAC) during the 1980 NCAA Division I-AA football season. Led by fifth-year head coach W. C. Gorden, the Tigers compiled and overall record o... | null | |
null | null | null | Rhinthon
Rhinthon (, gen.: Ῥίνθωνος; c. 323 – 285 BC) was a Hellenistic dramatist. The son of a potter, he was probably a native of Syracuse, Magna Graecia, and afterwards settled at Tarentum. He invented the hilarotragoedia, (Ἱλαροτραγῳδία) a burlesque of tragic subjects. Such burlesques were also called phlyakes ("f... |
Summarize key facts about „2013 Mutua Madrid Open – Women's doubles“ clearly and accurately. | **2013 Mutua Madrid Open – Women's doubles**
Sara Errani and Roberta Vinci were the defending champions, but chose not to participate in doubles. Anastasia Pavlyuchenkova and Lucie Šafářová won the title, defeating Cara Black and Marina Erakovic in the final, 6–2, 6–4. Seeds The top four seeds receive a bye into the s... | null | |
Translate to that language (japonsky): Good morning | Překlad do tohoto jazyka nezaručím. Anglicky: Good morning. Česky: Dobré ráno. | null | |
null | null | null | Kalorimetr
Kalorimetr je zařízení umožňující pokusně provádět tepelnou výměnu mezi tělesy a měřit potřebné tepelné veličiny (teplo a teplota). Blackův kalorimetr Tento jednoduchý kalorimetr, jeden z prvních kalorimetrů vůbec, se skládal z bloku ledu o teplotě 0 °C, do něhož byla vydlabána jamka. Do jamky byl vložen za... |
Add some markup to the following text | Hello World! | <p>Hello <strong>World</strong>!</p> | null |
null | null | null | Sielun Veljet (album)
Sielun Veljet is the 1983 debut album of the band of the same name. "Huda huda", a Tuomari Nurmio cover, was later included on the band's tribute album Otteita Tuomari Nurmion laulukirjasta. "Yö erottaa pojasta miehen" was covered by Neljä Ruusua on the 2002 various artists tribute album Säkenöiv... |
Jak se jmenuješ? | Jmenuju se KucLab V0.3. | null | |
Create an array with 10 elements and populate it with zeros. | a = [0] * 10 | null | |
Design a C++ class which adds the two arguments and returns the result. | class adder { int a, b; public: adder (int a, int b) { this->a = a; this->b = b; } int add() { int sum = a + b; return sum; } }; | null | |
Stručně shrň článek o tématu „Přímka“ a uveď hlavní fakta. | **Přímka**
Přímka je jednorozměrný základní geometrický útvar. Lze ji popsat jako nekonečně tenkou, dvoustranně nekonečně dlouhou, dokonale rovnou křivku (pojem křivka v matematice zahrnuje i „rovné křivky“), tedy křivku s nekonečně velkým poloměrem zakřivení. V euklidovské geometrii pro každé dva body existuje právě ... | null | |
What is the maximum length of a string in Python? | The maximum length of a string in Python is sys.maxsize, which is typically 2^63 - 1 on a 64-bit machine. This means that the maximum length of a string is 18,446,744,073,709,551,615 characters. | null | |
Summarize key facts about „Mothers of Srebrenica“ clearly and accurately. | **Mothers of Srebrenica**
The Mothers of Srebrenica ( / ), also known as the Mothers of the Enclaves of Srebrenica and Žepa ( / ), is an activist and lobbying group based in the Netherlands that represents 6,000 survivors of the siege of Srebrenica during the Yugoslav Wars of the 1990s. The organization is best known ... | null | |
Construct a function to check if a string is a pangram. | def is_pangram(s): s = s.lower() alphabet = "abcdefghijklmnopqrstuvwxyz" for letter in alphabet: if letter not in s: return False return True | null | |
Summarize key facts about „Bill Myers (baseball)“ clearly and accurately. | **Bill Myers (baseball)**
William Vandeveer Myers (October 31, 1886 – death date unknown) was an American Negro league catcher between 1908 and 1921. A native of Brooklyn, New York, Myers made his Negro leagues debut in 1908 with the Brooklyn Royal Giants. He played for Brooklyn again in 1910, and went on to play for ... | null | |
Summarize key facts about „West Moor SSSI“ clearly and accurately. | **West Moor SSSI**
West Moor () is a 213.0 hectare (526.3 acre) biological Site of Special Scientific Interest on the River Parrett in Somerset, notified in 1985. West Moor lies south of Curry Rivel, Langport, and Drayton, and northwest of Kingsbury Episcopi and is part of the extensive grazing marsh grasslands and di... | null | |
null | null | null | 1818 in Denmark
Events from the year 1818 in Denmark. Incumbents Monarch – Frederick VI Prime minister – Joachim Godske Moltke Events 26 May The County of Lerchenborg is established by Christian Cornelius Lerche from the manors of Lerchenborg and Aunsøgård as well as the farms Mineslund, Asnæsgård, Lerchenfeld, Birken... |
Summarize key facts about „China men's national basketball team“ clearly and accurately. | **China men's national basketball team**
The China men's national basketball team (nickname Team Dragon) represents the People's Republic of China in international basketball tournaments. The national team is governed by the Chinese Basketball Association (CBA). Based on the number of tournament titles, China is consi... | null | |
Summarize key facts about „Saf-t-Bra“ clearly and accurately. | **Saf-t-Bra**
Saf-t-Bra was a hard plastic brassiere introduced during World War II, to prevent injuries to the breasts of women war workers. It was produced by Willson Goggles. References External links Safety Garb for Women Workers, ca. 1943 Brassieres United States home front during World War II | null | |
Jaký je rozdíl mezi frontend a backend? | Frontend je to, co vidí uživatel (HTML/CSS/JS, UI). Backend je serverová logika, databáze a API, které frontend volá. | null | |
Fill in the blank with a successful response for a given user prompt. | Please enter a valid number: | Please enter a valid number: <Enter a valid number e.g. 6> | null |
Create a FizzBuzz program. | """ Create a FizzBuzz program """ for num in range(1, 101): if num % 3 == 0 and num % 5 == 0: print("FizzBuzz") elif num % 3 == 0: print("Fizz") elif num % 5 == 0: print("Buzz") else: print(num) | null | |
Implementuj `invert_dict` v Pythonu — prohodí klíče a hodnoty (unikátní). | ```python def invert_dict(d: dict) -> dict: return {v: k for k, v in d.items()} ``` | null | |
null | null | null | Paskalizace
Paskalizace je inovativní technologie využívaná v potravinářském průmyslu. Jedná se o ošetření potravin vysokým tlakem. Ve světě je tato technologie známá také pod zkratkou HPP – High Pressure Processing - již od 19. století. Tehdy bylo zjištěno, že vysoký tlak dokáže zničit bakterie, které jsou zodpovědné... |
Implementuj `write_text` v Pythonu — zapíše text do souboru. | ```python def write_text(path: str, text: str) -> None: with open(path, "w", encoding="utf-8") as f: f.write(text) ``` | null | |
Explain the effect of using recursion as a programming technique | Recursion is a programming technique that allows a function to call itself repeatedly until a certain condition is met. This allows for a clear solution to problems that involve repeated cycles of steps in their execution. Recursion also helps to solve complex problems by breaking them down into simpler sub-problems wh... | null | |
null | null | null | Biologická hodnota proteinů
Biologická hodnota bílkovin (BH) stanovuje, kolik gramů tělesných bílkovin může být vytvořeno ze 100 gramů proteinu ve stravě. Měřítkem je kvalita vaječné bílkoviny. Komplexní proteiny mají vysokou BH, proteiny s nízkou BH jsou využity více jako zdroj energie než pro růst a regeneraci. Bílk... |
Generate a Ruby program which returns the sum of all even numbers between 0 and 10 | # Function to calculate the sum of all even numbers between 0 and 10 def sum_even sum = 0 (0..10).each do |even_number| if even_number % 2 == 0 sum += even_number end end sum end # Invoke the function sum_even | null | |
Stručně shrň článek o tématu „Pelargonie“ a uveď hlavní fakta. | **Pelargonie**
Pelargonie (Pelargonium) je rod jednoletých nebo vytrvalých rostlin, bylin až polokeřů nebo keřů obsahující asi 240–300 druhů zahrnutých v čeledi kakostovité (Geraniaceae), které lze nalézt většinou v tropických a subtropických oblastech, především v jižní Africe. Pelargonie je používána jako okrasná kv... | null | |
Stručně shrň článek o tématu „Volby v Rusku“ a uveď hlavní fakta. | **Volby v Rusku**
Volby v Rusku jsou nominálně svobodné, existuje však řada pochybností o jejich spravedlivosti a čestnosti vyslovovaných nezávisle na zprávách pozorovatelů. Volí se do parlamentu, regionálních zastupitelstev a každých šest let probíhají přímé prezidentské volby, včetně guvernérských, které probíhají k... | null | |
null | null | null | NASA TV
NASA TV (originally NASA Select) is the television service of the National Aeronautics and Space Administration (NASA). It is broadcast by satellite with a simulcast over the Internet. Local cable television providers across the United States and amateur television repeaters may carry NASA TV at their own disc... |
null | null | null | Objem
Objem je fyzikální veličina, která vyjadřuje velikost prostoru, kterou zabírá těleso. Z matematického hlediska představuje objem míru charakterizující danou vymezenou část prostoru. Z Fyzikálně-chemického hlediska je objem odvozená jednotka. Objem látek je závislý na tlaku, teplotě a látkovém množství (viz stavo... |
null | null | null | Esperantská literatura
Esperantská literatura patří mezi nejmladší světové literatury, protože začala vznikat teprve po zveřejnění esperanta v roce 1887. Nejdříve vznikala literatura překladová, podobně jako u národních literatur, ale brzy se začala objevovat i původní díla. Charakteristickým znakem je různá národnost... |
Import a module in Python and store it in a variable named “import_module”. | import_module = importlib.import_module("<module name>") | null | |
null | null | null | Physcaeneura leda
Physcaeneura leda is a butterfly in the family Nymphalidae. It is found along the coast of Kenya, as well as in north-eastern Tanzania and southern Somalia. The habitat consists of dense woodland, forest margins and grassy forest clearings from sea-level to 1,850 meters. The larvae feed on Poaceae sp... |
Ukaž čistý kód: seskupí list dictů podle klíče. Pojmenuj funkci `group_by`. | ```python from collections import defaultdict def group_by(rows, key): g = defaultdict(list) for r in rows: g[r[key]].append(r) return dict(g) ``` | null | |
Design a data structure that can efficiently store unique user IDs and what type of data structure is this? | A hash table can be used to store unique user IDs as it provides efficient lookups, inserts and deletes of data. | null | |
Compute the distance between two points p1 and p2. | p1 = (3, 4), p2 = (6, 8). | import math def distance(p1, p2): xDiff = p2[0] - p1[0] yDiff = p2[1] - p1[1] return math.sqrt(xDiff**2 + yDiff**2) distance((3,4), (6,8)) # Returns 5.0 | null |
Create an array of 5 integers. | array = [1, 2, 3, 4, 5] | null | |
Stručně shrň článek o tématu „Madame Monsieur“ a uveď hlavní fakta. | **Madame Monsieur**
Madame Monsieur je francouzské hudební duo skládající se ze zpěvačky Émilie Satt a producenta Jeana-Karla Lucase. S písní Mercy reprezentovali Francii na 63. ročníku soutěže Eurovision Song Contest v Lisabonu 12. května 2018. Ve finále skončili na 13. místě se 173 body, přičemž u porot na místě 8. ... | null | |
null | null | null | Svobodné město Gdaňsk (napoleonské války)
Svobodné město Gdaňsk (francouzsky Ville Libre de Dantzig, německy Freie Stadt Danzig, polsky Wolne Miasto Gdańsk) byl kvazisamostatný stát, který byl založen pod patronací Francie během napoleonských válek 9. září 1807 (Tylžským mírem) a trval do 2. ledna 1814, kdy se posledn... |
Given a range of numbers, write a python program to find the sum of the elements within that range. | range: 1 to 10 | def sum_range(start, end): res = 0 for i in range(start, end+1): res += i return res sum_range(1, 10) | null |
null | null | null | Rodney Dethridge
Frank Rodney Dethridge (born 13 September 1961) is a former English cricketer. Dethridge was a right-handed batsman who bowled right-arm fast-medium. He was born in Pembury, Kent. Dethridge made his debut for Bedfordshire in the 1982 Minor Counties Championship against Hertfordshire. Dethridge played ... |
Edit the given code in Python to produce the desired output. | lst = [3, 8, 9] for i in lst: print(i) Expected Output: 3 8 9 | lst = [3, 8, 9] for i in lst: print(str(i)) # Output 3 8 9 | null |
Write a code to remove the oldest elements from a list until the list contains at most 10 elements. | list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | def remove_old_elements(lst): for i in range(len(lst) - 10): lst.pop(0) return lst list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] print(remove_old_elements(list)) # [3, 4, 5, 6, 7, 8, 9, 10, 11, 12] | null |
null | null | null | Statute Law Commission
Within law of the United Kingdom, a Statute Law Commission replaced the Statute Law Board on 29 August 1854. Recommendations made by the Commission of 1854 were implemented by the 19 & 20 Vict c 64. See also Charles Henry Bellenden Ker References Legal organisations based in the United Kingdom 1... |
Develop an algorithm for shuffling an array of numbers. | def shuffleArray(arr): for i in range(len(arr) - 1, 0, -1): j = random.randint(0, i + 1) arr[i], arr[j] = arr[j], arr[i] return arr | null | |
null | null | null | Mid Northumberland
Mid Northumberland NCA is a National Character Area in Northern England between the Northumberland Sandstone Hills and the North Northumberland Coastal Plain. It is bordered to the south by the Hadrian's Wall World Heritage Site. Ridges and river valleys dominate the region in the northern and weste... |
Write a SQL query to find all entries in the table that contain the word "house" | Table: "property" Columns: "address" | SELECT * from property WHERE address LIKE '%house%' | null |
Summarize key facts about „Battle of Placentia (1692)“ clearly and accurately. | **Battle of Placentia (1692)**
The Battle of Placentia (1692) was fought between the English and the French at Fort St. Louis (Castle Hill) in Placentia, Newfoundland and Labrador during King William's War. The battle lasted from 16 September until 21 September 1692. Background In order to protect the bay, there was o... | null | |
null | null | null | Potenciální energie
Potenciální energie (též polohová energie) je druh energie, kterou má každé těleso nacházející se v potenciálovém poli určité síly. Podle síly působící na dané těleso lze rozlišit více druhů potenciální energie: gravitační potenciální energie, potenciální energie pružnosti, tlaková potenciální ener... |
null | null | null | První vláda Oldřicha Černíka
První vláda Oldřicha Černíka existovala v období od 8. dubna 1968 do 31. prosince 1968. V návaznosti na zvolení Ludvíka Svobody prezidentem republiky a v souvislosti s volbou nového předsednictva ÚV KSČ a s projednávaným Akčním programem KSČ doporučil 4. dubna 1968 ÚV KSČ, aby vláda Jozefa... |
Summarize key facts about „Bob Winograd“ clearly and accurately. | **Bob Winograd**
Robert Earl (Bob) Winograd (born June 6, 1950) is a Canadian former professional ice hockey player. He played professionally in the World Hockey Association (WHA), the North American Hockey League and the American Hockey League from 1972 until 1977. Born in Winnipeg, Manitoba, Winograd played junior h... | null | |
Summarize key facts about „Sanur, Iran“ clearly and accurately. | **Sanur, Iran**
Sanur (, also Romanized as Sanūr) is a village in Chahardangeh Rural District, Chahardangeh District, Sari County, Mazandaran Province, Iran. At the 2006 census, its population was 202, in 47 families. References Populated places in Sari County | null | |
představ se celou větou a pak mlč | Jsem AI asistent na programování a češtinu. Co potřebuješ? | null | |
Write a sliding window algorithm in JavaScript to collect all the subarrays with size k from an array of size n. | let input =[1, 2, 3, 4, 5, 6, 7, 8]; let K=3 | function slideWindow(input, k){ let subArrays=[]; let start=0, end=k-1; while(end<input.length){ // Slice an array of size k from input let subArr=input.slice(start, end+1); subArrays.push(subArr); start++; end++; } return subArrays; } let res = slideWindow(input, k); console.log(res); // Output: [ [ 1, 2, 3 ], [ 2, 3,... | null |
Stručně shrň článek o tématu „Planimetrie“ a uveď hlavní fakta. | **Planimetrie**
Planimetrie je část geometrie v dvourozměrném (2D) Euklidovském prostoru (tj. v rovině). Charakteristika Planimetrie se zabývá geometrickými útvary, jejich vzájemnými vztahy, konstrukcí, měřením, vzdálenostmi, úhly, obvodem a plochou útvarů. Mezi základní pojmy a okruhy zájmů planimetrie patří: bod geo... | null | |
Use conditionals to decide what to print using the input array. | arr = ["hamburger", "hot dog", "cheese"] | if len(arr) == 0: print("No food available") elif len(arr) == 1: print(arr[0] + " is available") elif len(arr) == 2: print(arr[0] + " and "+ arr[1] + " are available") else: print("Multiple items are avaiable: " + ', '.join(arr)) | null |
Create a conditional statement in Java that prints "Welcome!" if the given argument is "Hi". | "Hi" | if (argument.equals("Hi")) { System.out.println("Welcome!"); } | null |
Ukaž Python kód — clamp. | ```python def clamp(x, lo, hi): return max(lo, min(hi, x)) ``` | null | |
Create a Python program that compares two given lists to check if they have any common element. | list1 = [1,2,3] list2 = [4,5,6] | def compare_lists(list1, list2): '''This function checks if two lists have any common element''' found_common = False for x in list1: if x in list2: found_common = True break return found_common | null |
Stručně shrň článek o tématu „Trajektorie“ a uveď hlavní fakta. | **Trajektorie**
Trajektorie (též pohybová křivka) je geometrická čára prostorem, kterou hmotný bod nebo těleso při pohybu opisuje. Jedná se tedy o množinu všech poloh (hmotného) bodu, v nichž se může v různých časových okamžicích nacházet. Trajektorií může být přímka, kružnice, elipsa či jakákoliv obecná křivka. Podle... | null | |
Spočítej: 22 + 5 = ? | 22 + 5 = 27 | null | |
Stručně shrň článek o tématu „Alembik“ a uveď hlavní fakta. | **Alembik**
Alembik ( الأنبيق (al-anbīḳ), ἄμβιξ (ambix), "pohár, číše") je starodávné destilační zařízení sestávající ze dvou nádob spojených trubkou. Bylo zhotovené z kovu, například z mědi, nebo ze skla. Používalo se v alchymii nebo také v produkci alkoholických nápojů. Tuto destilační aparaturu tvoří zmíněné dvě ná... | null | |
Write a SQL query to display owners and their pet names. | Table: Owners +------------+---------+ | owner_name | pet_name| +------------+---------+ | John | Buggs | | John | Max | | David | Bella | | Bill | Spike | +------------+---------+ | SELECT o.owner_name, o.pet_name FROM Owners o | null |
Stručně shrň článek o tématu „Union“ a uveď hlavní fakta. | **Union**
Union (z lat. unio jednota, sjednocení) může být: UNION – syntaktická konstrukce jazyka SQL příjmení Gabrielle Union (* 1972) – americká herečka geografie mnoho měst a míst v USA: Union (Alabama) Union (Connecticut) Union (Illinois) Union (Iowa) Union (Kentucky) Union (Maine) Union (Michigan) Union (Mississi... | null | |
Stručně shrň článek o tématu „František Lorenc“ a uveď hlavní fakta. | **František Lorenc**
František Lorenc, v Brazílii psáno Lorenz (24. prosince 1872 Zbyslav – 24. května 1957 Porto Alegre), byl český profesor a esperantista žijící po desetiletí v Brazílii. Je autorem první učebnice esperanta pro Čechy, která vyšla v roce 1890 tři roky po vyjití Zamenhofovy knihy přezdívané La Unua Li... | null | |
Write an SQL query to return the most frequently used keyword from the table. | Table Name: "Keywords" Column Name: "keyword" | SELECT keyword, COUNT(*) as occurrence FROM Keywords GROUP BY keyword ORDER BY occurrence DESC LIMIT 1; | null |
Stručně shrň článek o tématu „Kaple svatého Jana Nepomuckého (Zdoňov)“ a uveď hlavní fakta. | **Kaple svatého Jana Nepomuckého (Zdoňov)**
Kaple svatého Jana Nepomuckého je římskokatolická kaple v Hrnčířském údolí ve vsi Zdoňov, části Teplic nad Metují, náležející do tamní farnosti v Královéhradeckém kraji. Historie Na místě současné kaple v Hrnčířském údolí mezi Svatým kopečkem a Křížovým vrchem, cestou ze Zdo... | null | |
Stručně shrň článek o tématu „Reálná unie“ a uveď hlavní fakta. | **Reálná unie**
Reálná unie je spojení dvou a více států (suverénních), které sdílejí některé státní instituce, ale nejsou přímo spojeny do jednoho celku či státu (jako v případě politické unie) a zachovávají si svá práva suverénních států. Reálná unie se vyvinula z personální unie a obvykle se omezuje jen na monarchi... | null | |
Spočítej: 7 + 14 = ? | 7 + 14 = 21 | null | |
Stručně shrň článek o tématu „Ihľany“ a uveď hlavní fakta. | **Ihľany**
Ihľany (maď. Majorka, něm. Maierhöfen) jsou obec na východním Slovensku, v Prešovském kraji, v okrese Kežmarok v pohoří Levočské vrchy. Na východě a jihu sousedí s bývalým vojenským újezdem Javorina. Má rozlohu 9,59 km² a k 31. 12. 2004 ji obývalo 1344 osob. Historie obce Obec Ihľany vznikla v roce 1960 spo... | null | |
null | null | null | Historie esperanta
Historie esperanta začíná nápadem Ludvíka Lazara Zamenhofa na vytvoření mezinárodního jazyka. Vznik esperanta Zamenhof se narodil se v Bělostoku, v městě národnostně velmi smíšeném. Obyvatelstvo žilo ve stálém nepřátelství, společenské a národnostní rozbroje byly na denním pořádku. To přivedlo Zamen... |
Jak ošetřit dělení nulou v Pythonu? | ```python def safe_div(a, b): try: return a / b except ZeroDivisionError: return None # nebo raise vlastní chybu ``` | null | |
Write a JavaScript program to find the sum of all numbers the user has entered in to the input box. | function calculateSum() { let sum = 0; // Iterate over all the input boxes document.querySelectorAll("input[type=number]").forEach((element) => { // current value of the element let elementValue = Number(element.value); // Sum of all elements sum = sum + elementValue; }); console.log("The Sum of All the Numbers is: "+ ... | null | |
Write a JavaScript snippet to detect whether or not the current browser is Internet Explorer. | if (navigator.userAgent.indexOf('MSIE') !== -1 || navigator.appVersion.indexOf('Trident/') > -1) { console.log('Browser is Internet Explorer.'); } else { console.log('Browser is not Internet Explorer.'); } | null | |
Write a SQL query to get the count of records in a table. | SELECT COUNT(*) FROM myTable; | null | |
Stručně shrň článek o tématu „Vile (album)“ a uveď hlavní fakta. | **Vile (album)**
Vile je páté studiové album americké deathmetalové skupiny Cannibal Corpse. Původně se mělo jmenovat Created to Kill a bylo nahráno se zpěvákem Chrisem Barnesem. Krátce před vydáním byl ovšem Barnes ze skupiny vyhozen a nahradil jej George "Corpsegrinder" Fisher z Monstrosity, s ním bylo album znovu n... | null | |
Stručně shrň článek o tématu „Fender Rhodes“ a uveď hlavní fakta. | **Fender Rhodes**
Piano Fender Rhodes, zvané též piano Fender nebo piano Rhodes, je typ elektrického piana. Jeho výroba byla zahájena v 60. letech 20. století, vrchol popularity měl tento nástroj v letech sedmdesátých. V devadesátých letech Rhodes piano zažívalo svůj revival. Předchůdcem piana Fender Rhodes bylo Rhode... | null | |
Napiš SQL: vyber 11 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 11; ``` | null | |
Stručně shrň článek o tématu „Hydrostatický paradox“ a uveď hlavní fakta. | **Hydrostatický paradox**
Hydrostatický paradox (též hydrostatické paradoxon) je skutečnost, že hydrostatická tlaková síla na dno nádoby naplněné do stejné výšky stejnou kapalinou je vždy stejná bez ohledu na množství (objem, hmotnost) kapaliny. Nádoby stejně vysoké se stejně velkým dnem se mohou lišit jedině tvarem n... | null | |
Stručně shrň článek o tématu „COBOL“ a uveď hlavní fakta. | **COBOL**
COBOL (COmmon Business Oriented Language) je programovací jazyk vyvinutý v 60. letech zejména pro obchodní a později i databázové aplikace. Historie Jazyk COBOL byl vyvinut společným úsilím výrobců a uživatelů počítačů ve spolupráci s ministerstvem obrany USA. Ve dnech 28. – 29. května 1959 se konala konfere... | null | |
Stručně shrň článek o tématu „Minimoog“ a uveď hlavní fakta. | **Minimoog**
Minimoog je nejznámější nástroj z rodiny Moogových syntezátorů, zkonstruovaný Robert Moogem a Billem Hemsathem podle požadavků rockových a popových hudebníků. Nástroj byl představen roku 1970, vyráběl se od roku 1971 do počátku 80. let. Jedná se o první syntetizér Moog, který nemá modulární strukturu. Je ... | null | |
Napiš krátký e-mail česky: omluvím se za zpoždění. | Předmět: Omluva za zpoždění Dobrý den, omlouvám se za zpoždění s odpovědí/dodáním. Doplním to co nejdříve. S pozdravem | null | |
Napiš mini CLI TODO v Pythonu (add/list) v paměti. Komentáře piš česky. | ```python class Todo: def __init__(self): self.items = [] def add(self, title: str) -> None: self.items.append({"title": title, "done": False}) def list(self) -> None: for i, it in enumerate(self.items, 1): mark = "x" if it["done"] else " " print(f"{i}. [{mark}] {it['title']}") if __name__ == "__main__": t = Todo() t.a... | null | |
null | null | null | Croceibacter
Croceibacter is a genus in the phylum Bacteroidota (Bacteria). Etymology The name Croceibacter derives from:Latin adjective croceus, saffron-colored; Neo-Latin masculine gender noun, a rodbacter, nominally meaning "a rod", but in effect meaning a bacterium, rod; Neo-Latin masculine gender noun Croceibacte... |
null | null | null | Oi Panihi
Oi Panihi is a village in Tambora district, Bima regency in the West Nusa Tenggara province of Indonesia. Its population in 2010 was 475. Climate Oi Panihi has a tropical rainforest climate (Af). It has moderate rainfall from June to September and heavy to very heavy rainfall in the remaining months. Referen... |
null | null | null | Zaměstnanecké vlastnictví
Zaměstnanecké vlastnictví znamená, že zaměstnanci firmy mají určitý vlastnický podíl na firmě - obvykle v podobě zaměstnaneckých akcií. Jsou jejími zaměstnanci a zároveň spoluvlastníky Výhody Zaměstnanecké vlastnictví akcií má výhody jako například motivaci pracovníků skrze to, že spoluvlastn... |
Create a function that will find the maximum length of increasing subarray in a list | list = [2, 3, 3, 1, 4, 5, 8, 4] | def longest_increasing_subarray(arr): max_length = 1 curr_length = 1 for i in range(1, len(arr)): if arr[i] > arr[i - 1]: curr_length += 1 else: if curr_length > max_length: max_length = curr_length curr_length = 1 if curr_length > max_length: max_length = curr_length return max_length | null |
Write a SQL query to find all teachers with more than 10 years of experience. | SELECT * FROM teachers WHERE years_of_experience > 10; | null | |
Return the given array with all elements reversed. | [1, 2, 3, 4, 5] | [5, 4, 3, 2, 1] | null |
Create a function to retrieve the last three elements in an array and store them in a new array. | let array = [1, 2, 3, 4, 5, 6, 7] | const lastThreeElements = (arr) => { const newArray = []; for (let i = arr.length - 3; i < arr.length; i++) { newArray.push(arr[i]); } return newArray; }; let lastThree = lastThreeElements(array); console.log(lastThree); // Output: [5, 6, 7] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.