instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Create a function that outputs the minimum and maximum ofa list of numbers. | list = [1, 3, 7, -2, 4] | def minmax(list) min = list[0] max = list[0] for num in list[1:]: if num < min: min = num if num > max: max = num return min, max | null |
null | null | null | Oblastní hokejové soutěže 1958/1959
Československé oblastní soutěže ledního hokeje 1958/1959 byla třetí nejvyšší hokejovou soutěží na území Československa. Systém soutěže Soutěž se byla rozdělena do 8 skupin po 6 účastnících. Ve skupinách se všechny kluby utkaly každý s každým (celkem 10 kol). Vítězové jednotlivých sk... |
Summarize key facts about „Křížkový Újezdec“ clearly and accurately. | **Křížkový Újezdec**
Křížkový Újezdec is a municipality and village in Prague-East District in the Central Bohemian Region of the Czech Republic. It has about 300 inhabitants. Administrative parts The village of Čenětice is an administrative part of Křížkový Újezdec. History The first written mention of Křížkový Újezd... | null | |
Create an HTML page with a table and list 3 books in it. | <html> <head> <title>Books</title> </head> <body> <table> <thead> <tr> <th>Title</th> <th>Author</th> </tr> </thead> <tbody> <tr> <td>The Catcher in the Rye</td> <td>J. D. Salinger</td> </tr> <tr> <td>The Great Gatsby</td> <td>F. Scott Fitzgerald</td> </tr> <tr> <td>To Kill a Mockingbird</td> <td>Harper Lee</td> </tr> ... | null | |
Find the duplicate in the array. | arr = [1,2,3,4,2] | def find_duplicate(arr): seen = set() for item in arr: if item in seen: return item else: seen.add(item) return None # if no duplicate find_duplicate(arr) # Returns 2 | null |
Stručně shrň článek o tématu „Emilie Demant Hattová“ a uveď hlavní fakta. | **Emilie Demant Hattová**
Emilie Demant Hattová (21. ledna 1873 – 4. prosince 1958) byla dánská umělkyně, spisovatelka a etnoložka. Život Vystudovala umění v Kodani, ale poté, co se v roce 1904 seznámila s Johanem Turim začala studovat sámské jazyky a zajímat se o etnologii. V letech 1907–1908 pobývala v Laponsku a po... | null | |
Stručně shrň článek o tématu „Impuls síly“ a uveď hlavní fakta. | **Impuls síly**
Impuls síly je vektorová fyzikální veličina, která vyjadřuje časový účinek působení síly. Velikost impulzu síly závisí na velikosti síly a na čase, po který tato síla působila. Čím delší dobu síla působí, tím větší je její účinek. Značení Symbol veličiny: Jednotka SI: Newton krát sekunda, značka jednot... | null | |
Using the given data structure, find and return the 3 highest numbers. | [2, 4, 8, 10, 6, 5, 7, 11] | def findThreeHighest(arr): arr.sort() return arr[-1], arr[-2], arr[-3] | null |
Summarize key facts about „Ranga Poshteh“ clearly and accurately. | **Ranga Poshteh**
Ranga Poshteh (, also Romanized as Rangā Poshteh; also known as Rangeh Poshteh) is a village in Sakht Sar Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 43, in 11 families. References Populated places in Ramsar County | null | |
Compare two strings and find which one is lexicographically greater. | String 1: "apple" String 2: "banana" | if string1 > string2: print("String 1 is lexicographically greater") else: print("String 2 is lexicographically greater") | null |
Create code to find the longest subarray with equal number of 0's and 1's | list = [0, 0, 1, 0, 1, 0, 0, 1] | def longest_subarray(arr): # Stores index of previos zero prev_zero = -1 # Stores index and length of longest subarray with equal 0 and 1 max_len = 0 start_index = 0 # Traverse the given array for i in range(len(arr)): # Update previous zero if arr[i] == 0: prev_zero = i # Calculate difference b/w current and previous ... | null |
Spočítej: 15 + 3 = ? | 15 + 3 = 18 | null | |
Construct a C++ class with three data members and one function. | class MyClass { int data1; float data2; string data3; void myFunction() { //function code } }; | null | |
Summarize key facts about „Tecovas Formation“ clearly and accurately. | **Tecovas Formation**
The Tecovas Formation is a geological formation in the Texas panhandle and eastern New Mexico. It is one of several formations encompassed by the Late Triassic Dockum Group. The lower unit of the Cooper Canyon Formation in Garza County to the south is stratigraphically equivalent to the Tecovas F... | null | |
Stručně shrň článek o tématu „Potenciální energie“ a uveď hlavní fakta. | **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í ... | null | |
null | null | null | Hlavní strana
Vítejte ve Wikipedii, internetové encyklopedii, kterou může upravovat každý.Česká Wikipedie má nyní článků. Jiné jazykyEmbassy Článek týdne Nejlepší články • Dobré články • Další články týdne… Víte, že… Listování kategoriemi Všechny kategorie… Tematické portály Dobré portály • Všechny portály… Wikipedie ... |
Kolik je 9 - 5? | 9 - 5 = 4 | null | |
null | null | null | Yuppies
Yuppies (česky někdy jupíci) je označení pro vrstvu, resp. subkulturu mladých lidí (typicky dvacátníků nebo třicátníků), kteří jsou bohatí nebo aspoň finančně zajištěni (mají nadprůměrně dobře placené zaměstnání, zpravidla v oblasti managementu), za svůj úspěch a bohatství se nestydí, a mají specifický životní... |
null | null | null | Magda Vášáryová
Magda Vášáryová (* 26. srpna 1948 Banská Štiavnica) je slovenská herečka, diplomatka, státní úřednice a politička. Vyučuje na Vysoké škole CEVRO Institut. Život a kariéra Narodila se v učitelské rodině Jozefa Vášáryho (1915–1973) a jeho ženy Hermíny Schmiedové. Vystudovala matematicko-fyzikální gymnázi... |
Summarize key facts about „Donovan McNabb“ clearly and accurately. | **Donovan McNabb**
Donovan Jamal McNabb (born November 25, 1976) is an American former football quarterback who played in the National Football League (NFL) for 13 seasons, primarily with the Philadelphia Eagles. He played college football at Syracuse University and was selected second overall in the 1999 NFL Draft by... | null | |
Kolik je 8 - 4? | 8 - 4 = 4 | null | |
Write a Python function that takes a list of numbers and returns the mean and standard deviation of that list. | list = [1, 2, 3, 4, 5] | import statistics def get_stats(list): mean = statistics.mean(list) stdev = statistics.stdev(list) return mean, stdev mean, stdev = get_stats(list) print("Mean:", mean) print("Standard Deviation:", stdev) | null |
Stručně shrň článek o tématu „První vláda Oldřicha Černíka“ a uveď hlavní fakta. | **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 Jo... | null | |
null | null | null | Otmarov (Přibyslavice)
Otmarov (německy Othmarau) je vesnice, součást obce Přibyslavice v okrese Brno-venkov. Historie Ves vznikla v těsné blízkosti Přibyslavic, severozápadně od jejich jádra, které se nachází v údolíčku kolem Přibyslavického potoka. Otmarov byl založen během raabizace v roce 1786 parcelací místního d... |
Python solution: Two Sum: najdi indexy dvou čísel se součtem target. | ```python def two_sum(nums: list[int], target: int) -> list[int]: seen = {} for i, x in enumerate(nums): need = target - x if need in seen: return [seen[need], i] seen[x] = i raise ValueError("nenalezeno") ``` | null | |
Summarize key facts about „Alfred Wagstaff Jr.“ clearly and accurately. | **Alfred Wagstaff Jr.**
Alfred Wagstaff Jr. (March 21, 1844 – October 2, 1921) was an American lawyer and politician from New York. He was president of the American Society for the Prevention of Cruelty to Animals from 1906 until his death in 1921. Early life Wagstaff was born on March 21, 1844, at 27 Waverly Place in... | null | |
Write a JavaScript function to find the number of matching items in two arrays. | arr1 = [1, 2, 3, 4] arr2 = [3, 4, 5, 6] | function countMatchingItems(arr1, arr2) { return arr1.filter(num => arr2.includes(num)).length; } count = countMatchingItems(arr1, arr2); console.log(count); // Output: 2 | null |
Spočítej: 25 + 14 = ? | 25 + 14 = 39 | null | |
Generate a JavaScript function to perform binary search for a given array. | function binarySearch(array, target) { // Initialize variables let left = 0; let right = array.length - 1; // Iterate while left <= right while (left <= right) { // Get middle index let mid = left + Math.floor((right - left) / 2); // Match found if (array[mid] === target) { return mid; } // If target is smaller than th... | null | |
Napiš SQL: vyber 15 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 15; ``` | null | |
Kolik je 4 × 5? | 4 × 5 = 20 | null | |
Write a function to remove duplicate elements from a list keeping only the first occurrence of each element. | [1, 2, 3, 3, 3, 4, 4, 5] | def remove_duplicates(nums): # Create a list to store the first occurrence of each number seen = [] # Iterate over the list for num in nums: # If the number is not in the seen list, add it if num not in seen: seen.append(num) return seen | null |
Summarize key facts about „1908 North Dakota Agricultural Aggies football team“ clearly and accurately. | **1908 North Dakota Agricultural Aggies football team**
The 1908 North Dakota Agricultural Aggies football team was an American football team that represented North Dakota Agricultural College (now known as North Dakota State University) as an independent during the 1908 college football season. In their only year und... | null | |
Construct a for loop to check for prime numbers up to a given number. | n = 20 | # construct a for loop to check for prime numbers up to 20 for num in range(2, n+1): isPrime = True for i in range(2, num): if (num % i == 0): isPrime = False break if isPrime: print(num, " is a prime number") | null |
Using the comment as a guide, edit the code that prints "X out of 10" to print "X out of Y". | x = 5 print("x out of 10") #TODO: replace 10 with the correct variable | x = 5 print("x out of " + str(x)) | null |
Stručně shrň článek o tématu „Vražda Jána Kuciaka a Martiny Kušnírové“ a uveď hlavní fakta. | **Vražda Jána Kuciaka a Martiny Kušnírové**
Vražda Jána Kuciaka a Martiny Kušnírové byla spáchána 21. února 2018 v západoslovenské obci Veľká Mača nedaleko Trnavy. Slovenský investigativní novinář Ján Kuciak byl zastřelen ve věku 27 let i se svou partnerkou Martinou Kušnírovou. Byl usmrcen dvěma střelami do srdce, jeh... | null | |
Rewrite the below C statement using a ternary operator. | if (condition) { result = 5; } else { result = 10; } | result = (condition) ? 5 : 10; | null |
Can you write Java / C++ / C# / Kotlin / Swift? | No. I stick to Python, JavaScript, HTML and PHP. I won't invent code in languages I don't cover well. | null | |
null | null | null | Simon Strousse Baker
Simon Strousse Baker (July 11, 1866 – October 10, 1932) was the 6th president of Washington & Jefferson College. Baker, the great-great-grandson of Dr. Thaddeus Dod, the founder of Washington Academy, was born in Amwell Township, Pennsylvania on July 11, 1866. In 1892, he graduated from Washington... |
Summarize key facts about „Town Apartments“ clearly and accurately. | **Town Apartments**
Town Residences, formerly the Town Apartments, is a high-rise apartment building located at 1511 First Street (at the corner of First Street and Bagley Avenue) in Downtown Detroit, Michigan. Originally designed by Wirt C. Rowland, the structure was built in two distinct phases: construction started... | null | |
null | null | null | Trenérka (film)
Trenérka, anglicky Wildcats, je americká filmová komedie ze školního a sportovního prostředí z roku 1986 režiséra Michaela Ritchie s Goldie Hawnovou v hlavní roli. Děj Děj snímku humornou formou popisuje příběh Molly McGrathové, ambiciózní učitelky tělocviku na jedné nechvalněznámé chicagské střední sk... |
Summarize key facts about „National Archaeological Museum of Ferrara“ clearly and accurately. | **National Archaeological Museum of Ferrara**
The National Archaeological Museum of Ferrara is housed in Palazzo Costabili, in Ferrara, Italy. It holds various excavated artifacts from the Etruscan city of Spina, which flourished between the 6th and 3rd centuries BC. The ancient city of Spina, close to modern Comacchi... | null | |
Stručně shrň článek o tématu „Marina Rosča (stanice metra v Moskvě)“ a uveď hlavní fakta. | **Marina Rosča (stanice metra v Moskvě)**
Marina Rosča () je stanice moskevského metra na Ljublinsko-Dmitrovské lince. Byla zprovozněna v rámci úseku Trubnaja - Mar'ina Rosča, nyní se nachází mezi stanicemi Dostojevskaja - Butyrskaja. Do 16. září 2016 se jednalo o severní konečnou stanici na této lince. Charakter stan... | null | |
Explain the result of the following one-liner command. | echo Apple Banana Cat | cut -d" " -f2 | This command prints the second word of the list of words, i.e., "Banana". The echo command prints out the words 'Apple', 'Banana', and 'Cat', and the cut command is used to extract the parts of each word delimited by spaces. The -d flag specifies the delimiter, which in this case is a space, and the -f flag specifies t... | null |
Change the following Define statement so that it will display a message containing the word “DONE” when the code is executed. | #define display_message() | #define display_message() printf("DONE\n") | null |
Write Java code to check if two strings are anagrams, e.g. god, dog are anagrams. | String str1 = "abc"; String str2 = "cba"; | public static boolean isAnagram(String str1, String str2) { char arr1[] = str1.toCharArray(); char arr2[] = str2.toCharArray(); Arrays.sort(arr1); Arrays.sort(arr2); return Arrays.equals(arr1, arr2); } | null |
Summarize key facts about „Chattur Singh“ clearly and accurately. | **Chattur Singh**
Chandersen Chattur Singh was an Indo-Fijian politician. He caused a major sensation in the 1937 elections when he defeated A. D. Patel, a well known lawyer and political ally of Vishnu Deo. Early Political Activities Chattur Singh was one of the first Indo-Fijians to take an active interest in politi... | null | |
null | null | null | 2. leden
2. leden je druhý den roku podle gregoriánského kalendáře. Do konce roku zbývá 363 dní (364 v přestupném roce). Události Česko 1762 – Vznikla česko-rakouská dvorská kancelář. 1873 – Vyšlo první číslo obnoveného českého časopisu Lumír. Redigovali jej Jan Neruda a Vítězslav Hálek, od roku 1877 Josef Václav Slád... |
null | null | null | Musnad Ahmad ibn Hanbal
Musnad Ahmad ibn Hanbal () is a collection of musnad hadith compiled by the Islamic scholar Ahmad ibn Hanbal (d. 241 AH/855 AD) to whom the Hanbali fiqh (legislation) is attributed. Description It is one of the largest hadith books in Islamic history containing more than twenty-seven thousand h... |
Output the largest number in this array | [20, 6, 36, 41, 12, 3] | 41 | null |
Spočítej 6×5 | 6 × 5 = 30 | null | |
Stručně shrň článek o tématu „Počítač“ a uveď hlavní fakta. | **Počítač**
Počítač je číslicový elektronický stroj, který lze naprogramovat tak, aby automaticky prováděl posloupnosti aritmetických nebo logických operací (výpočty). Moderní počítače dokáží provádět obecné množiny operací známé jako programy. Tyto programy umožňují počítačům provádět širokou škálu úloh. Počítačový s... | null | |
Stručně shrň článek o tématu „Kardiotoxicita“ a uveď hlavní fakta. | **Kardiotoxicita**
Kardiotoxicita je vlastnost, která vede k poškození srdečního svalu a tím ke zhoršení srdečních funkcí. Oslabené srdce není dostatečně efektivní při pumpování a zajištění oběhu krve. Kardiotoxicita může být způsobena chemoterapií, komplikací z mentální anorexie či nesprávným podáváním léku jako je l... | null | |
null | null | null | Bílý soul
Bílý soul, respektive soul bílých umělců (někdy též blue-eyed soul, což znamená "modrooký soul"). Bílý soul přišel společně s "černošským soulem" v šedesátých letech 20. století. Inspirací byly převážně nahrávky z Motown Records či Stax Records. 70. a 80. léta přinesla novou vlnu bílých umělců, kteří se zají... |
Using the Java programming language, print out the direct children of a given element in an HTML document. | <div id="container"> <p>This is a paragraph.</p> <ul> <li>This is a list item.</li> <li>This is a second list item.</li> </ul> </div> | Element containerElement = document.getElementById("container"); NodeList children = containerElement.getChildNodes(); for (int i=0; i<children.getLength(); i++) { Node child = children.item(i); System.out.println(child.getNodeName()); } | null |
Stručně shrň článek o tématu „Atanas D. Atanasov“ a uveď hlavní fakta. | **Atanas D. Atanasov**
Atanas Dančev Atanasov, pseudonym Ada, (12. února 1892 Sofie – 1981) byl bulharský úředník, aktivně činný v esperantském hnutí. Byl hlavní spoluautor Encyklopedie esperanta, překládal do esperanta, redigoval esperantské časopisy. V letech 1927–1928 byl prezidentem Esperantské akademie. Externí o... | null | |
Construct a CSS rule to either hide or show the paragraph element with the id "description". | #description{ display: block; } | null | |
Stručně shrň článek o tématu „5. březen“ a uveď hlavní fakta. | **5. březen**
5. březen je 64. den roku podle gregoriánského kalendáře (65. v přestupném roce). Do konce roku zbývá 301 dní. Svátek má Kazimír. Události Česko 1416 – Král Václav IV. stvrdil Brnu právo vybudovat jeho první vodovod. 1560 – Velký požár skoro zničil celou Litomyšl. 1969 – Zasedání Ústředního výboru Českos... | null | |
Stručně shrň článek o tématu „Jan mladší Popel z Lobkovic“ a uveď hlavní fakta. | **Jan mladší Popel z Lobkovic**
Jan mladší Popel z Lobkovic (8. listopadu 1510 – 12. dubna 1570 Praha-Hradčany), od roku 1569 starší, také Jan IV. Popel z Lobkowicz byl český šlechtic, představitel mladší – popelovské linie rodu Lobkoviců, zakladatel jeho tachovské pošlosti, nejvyšší komorník a nejvyšší purkrabí České... | null | |
null | null | null | Po životě
Po životě (v anglickém originále After.Life) je americký mysteriózní thriller z roku 2009, ve kterém spolu v hlavních rolích hrají Liam Neeson, Christina Ricci a Justin Long. Film režírovala Agnieszka Wójtowicz-Vosloo jako svůj celovečerní debut na základě svého vlastního scénáře. Zápletka Anna Taylor (Chris... |
Napiš čistý HTML s nadpisem a odstavcem česky. | <!DOCTYPE html>
<html lang="cs">
<head>
<meta charset="utf-8">
<title>Ahoj</title>
</head>
<body>
<h1>Ahoj světe</h1>
<p>Toto je odstavec.</p>
</body>
</html> | null | |
null | null | null | Návrat na Brideshead (film)
Návrat na Brideshead (v anglickém originále Brideshead Revisited) je britské filmové drama z roku 2008. Natočil je režisér Julian Jarrold podle stejnojmenné románové předlohy z pera Evelyna Waugha. Film je druhou adaptací románu, po jedenáctidílném seriálu z roku 1981 s Jeremy Ironsem v hla... |
Write a python script to convert a given number to a string. | num = 1234 | def num_to_str(num): return str(num) | null |
null | null | null | Evangelický kostel (Horní Blatná)
Evangelický kostel v Horní Blatné v karlovarském okrese byl postaven na přelomu 19. a 20. století. Nachází se severovýchodně od Náměstí Sv. Vavřince s katolickým kostelem zasvěceným stejnému světci. Kostel je opuštěný a chátrá. Historie V městečku Horní Blatná původně převažovali evan... |
Summarize key facts about „2021 Kellogg's strike“ clearly and accurately. | **2021 Kellogg's strike**
The 2021 Kellogg's strike was a labor strike started on October 5, 2021 and ended December 21, 2021 involving about 1,400 workers for food manufacturer Kellogg's, unionized as members of the Bakery, Confectionery, Tobacco Workers and Grain Millers' International Union (BCTGM). The strike was ... | null | |
Create a React component to render a table with data from an API. | const data = [ {name: 'Alice', age: 28, job: 'engineer'}, {name: 'Bob', age: 30, job: 'teacher'}, {name: 'Charlie', age: 27, job: 'developer'} ] | import React from 'react'; const dataTable = props => { const { data } = props; return ( <table> <thead> <tr> <th>Name</th> <th>Age</th> <th>Job</th> </tr> </thead> <tbody> { data.map(item => ( <tr> <td>{item.name}</td> <td>{item.age}</td> <td>{item.job}</td> </tr> )) } </tbody> </table> ); } export default dataTable; | null |
Calculate the result of the following expression: 63 × 42 | 2646 | null | |
Calculate the sum of the following list of numbers: 10, 12, 14, 16, 18. | The sum of the numbers is 70. | null | |
Stručně shrň článek o tématu „Marussia F1“ a uveď hlavní fakta. | **Marussia F1**
Marussia F1 Team, dříve závodící jako Marussia Virgin Racing (2011) a Virgin Racing (2010), byl anglo-ruský tým formule 1, který sídlil v Banbury a později Dinningtonu ve Velké Británii. Tým byl provozován společností Manor Motorsport (dříve Marussia Manor Racing), která byla původně dceřinou společnos... | null | |
Summarize key facts about „Najjar Kola-ye Qadim“ clearly and accurately. | **Najjar Kola-ye Qadim**
Najjar Kola-ye Qadim (, also Romanized as Najjār Kolā-ye Qadīm; also known as Najjār Kolā) is a village in Talarpey Rural District, in the Central District of Simorgh County, Mazandaran Province, Iran. At the 2006 census, its population was 697, in 196 families. References Populated places in ... | null | |
Stručně shrň článek o tématu „Avallónë“ a uveď hlavní fakta. | **Avallónë**
Avallónë je elfský přístav v Tolkienově fantasy světě, elfské město na Tol Eressëi, přístav Eldar. Založeno bylo elfy z rodu Teleri, kteří milovali pohled na hvězdy, ale kvůli světlu Stromů ve Valinoru je nemohli pozorovat. Po pádu Númenoru se Avallónë stal přístavem pro ty z elfů, kteří přicházeli ze Stř... | null | |
Stručně shrň článek o tématu „Kapalina“ a uveď hlavní fakta. | **Kapalina**
Kapalina neboli kapalná látka je jedno ze skupenství látek, při kterém jsou částice látky relativně blízko sebe, ale nejsou vázány v pevných polohách a mohou se pohybovat v celém objemu. Kinetická energie částic kapaliny je malá ve srovnání s vazebnou potenciální energií, takže částice se vzájemně udržují... | null | |
Summarize key facts about „Hours (The Machine De Ella Project)“ clearly and accurately. | **Hours (The Machine De Ella Project)**
Hours is a 2013 concept album recorded by experimental Christian rock band Falling Up. It is part of the Machine De Ella project, which includes a novel, also entitled Hours, written by lead-singer and producer, Jessy Ribordy. The project also includes their album Midnight on Ea... | null | |
Co je HTTP status 404? | 404 Not Found — server nenašel požadovanou stránku/zdroj. | null | |
null | null | null | Wysall
Wysall is a village and civil parish in Nottinghamshire, England. It is south of Nottingham. According to the 2001 census it had a population of 321, including Thorpe-on-the-Glebe and increasing to 431 at the 2011 census. Holy Trinity Church, Wysall is Norman, with a thirteenth-century tower with spire and a fo... |
Stručně shrň článek o tématu „Třetí vláda Lubomíra Štrougala“ a uveď hlavní fakta. | **Třetí vláda Lubomíra Štrougala**
Třetí vláda Lubomíra Štrougala existovala v období 11. listopadu 1976 – 17. června 1981. Seznam členů vlády Předseda vlády: Lubomír Štrougal Místopředseda vlády: Josef Korčák Peter Colotka Karol Laco Matej Lúčan Rudolf Rohlíček Josef Šimon Jindřich Zahradník Václav Hůla (pověřen říze... | null | |
Store a list of elements in a dictionary, making each element the key and itself the value. | list = [4, 8, 12, 16] | dictionary = {4:4, 8:8, 12:12, 16:16} | null |
null | null | null | Třebosice
Obec Třebosice se nachází v okrese Pardubice, kraj Pardubický. Žije zde obyvatel. Historie První písemná zmínka o obci pochází z roku 1319. Archeologická lokalita Obec je významnou archeologickou lokalitou. Archeoložka Kristýna Bulvová její význam pro poznání neolitické kultury přirovnává k významu Věstonic ... |
Suggest a way to count the number of two letter words in a string. | def count_two_letter_words(string): words = string.split() count = 0 for word in words: if len(word) == 2: count += 1 return count if __name__ == '__main__': string = "This is a sample string with two letter words." print(count_two_letter_words(string)) | null | |
null | null | null | Plování těles
Plování těles je jev, kdy vztlaková síla působící na těleso plně ponořené do kapaliny je větší než tíhová síla přitahující těleso k Zemi. Těleso tedy podle Archimédova zákona stoupá směrem k hladině, část z něj se vynoří nad hladinu, čímž se vztlaková síla zmenší tak, že se vyrovná s tíhovou silou. Jedná... |
Summarize key facts about „Berezina“ clearly and accurately. | **Berezina**
The Berezina or Biarezina (, ; ) is a river in Belarus and a right tributary of the Dnieper. The river starts in the Berezinsky Biosphere Reserve. The length of the Berezina is 613 km. The width of the river is 15–20 m, the maximum is 60 m. The banks are low (up to 0.5 m), steep in some areas (up to 1.5 m... | null | |
Přepiš spisovně: potrebuju pomoct s pythonem | Potřebuju pomoct s Pythonem. | null | |
hi | Ahoj! Napiš úkol — klidně česky nebo anglicky, případně kód v Python/JS/HTML/PHP. | null | |
Ukaž JavaScript — groupBy. | ```javascript function groupBy(arr, key) { return arr.reduce((m, x) => { (m[x[key]] ||= []).push(x); return m; }, {}); } ``` | null | |
Create a Python program to accept a string from the user and print out the number of vowels in the string. | Hello World | def countVowels(str): vowel = 0 for i in str: if i.lower() in ['a', 'e', 'i', 'o', 'u']: vowel += 1 return vowel # Driver code str = "Hello World" print("Number of vowels are:", countVowels(str)) | null |
Hello | Zdravím! Napiš úkol — rád pomůžu. | null | |
Design a class BankAccount that represents a bank account with the attributes name, balance, and interest_rate. | class BankAccount: def __init__(self, name, balance, interest_rate): self.name = name self.balance = balance self.interest_rate = interest_rate def deposit(self, amount): self.balance += amount def withdraw(self, amount): self.balance -= amount | null | |
Read a code and find all the function calls that are made. | print('Hello world!') my_function() my_function2(2, 3) | The two function calls made are "my_function()" and "my_function2(2, 3)". | null |
Design a HTML page to register a new user. | <!DOCTYPE html> <html> <body> <h2>User Registration</h2> <form action="/action_page.php"> Username:<br> <input type="text" name="username" value=""><br> Email:<br> <input type="text" name="email" value=""><br><br> <input type="submit" value="Submit"> </form> </body> </html> | null | |
Summarize key facts about „Freight equalisation policy“ clearly and accurately. | **Freight equalisation policy**
Freight equalisation policy was adopted by the Government of India (Union Government) to facilitate the equal growth of industry all over India (Indian Union). This meant a factory could be set up anywhere in India and the transportation of minerals would be subsidised by the Union Gove... | null | |
Kolik je 12 - 4? | 12 - 4 = 8 | null | |
Summarize key facts about „My Old Man Said“ clearly and accurately. | **My Old Man Said**
My Old Man Said (MOMS) is the name of the online publication and Aston Villa F.C. supporters' group. MOMS was formed in 2011 from the ashes of the supporter protest against the controversial appointment of Aston Villa F.C. manager Alex McLeish. The group and site takes its name from the Aston Villa... | null | |
Stručně shrň článek o tématu „Kanonenjagdpanzer“ a uveď hlavní fakta. | **Kanonenjagdpanzer**
Kanonenjagdpanzer (také Jagdpanzer Kanone 90 mm) byl německý stíhač tanků. Spolu s Jagdpanzer Jaguar 1 a Marder patří mezi úspěšné projekty užívané německým Bundeswehrem. Postupem času bylo přes 160 stíhačů přezbrojeno z 90 mm kanónu na protitankové střely TOW. Odkazy Literatura Zbraně 20. stolet... | null | |
Summarize key facts about „Imesha Dulani“ clearly and accurately. | **Imesha Dulani**
Imesha Dulani (born 20 January 2002) is a Sri Lankan cricketer who plays for the Sri Lanka women's national cricket team. Recognition In October 2021, she was named in Sri Lanka's team for the 2021 Women's Cricket World Cup Qualifier tournament in Zimbabwe, one of three uncapped players in Sri Lanka'... | null | |
What data structure is adopted to reflect the hierarchical structure of XML documents? | A tree data structure is typically adopted to represent the hierarchical structure of XML documents. In this structure, each node represents an element of the document and can have any number of children or parents depending on the structure. | null | |
Spočítej 20×5 | 20 × 5 = 100 | null | |
Kolik je 6 × 9? | 6 × 9 = 54 | null | |
null | null | null | Lawrence Grassi
Andrea Lorenzo Grassi (20 December 1890 – 5 February 1980) was an Italian miner known as Lawrence Grassi. He moved to Canada in 1912, taking on work with the Canadian Pacific Railway (CPR), before settling down in Canmore, Alberta, in 1916. There he worked as a miner, until he retired. Grassi became we... |
Write a script in Python that takes a list of strings and prints out the first letter of each string in uppercase. | A = ["apple", "banana", "grapes"] | """ Write a script in Python that takes a list of strings and prints out the first letter of each string in uppercase """ # create the function def uppercase_first_letters(list_of_strings): for string in list_of_strings: print(string[0].upper()) # call the function with the list A = ["apple", "banana", "grapes"] upperc... | null |
Write a function to get the length of a given string without using any built-in function. | text = "Hello world!" | def get_length(text): counter = 0 for i in text: counter += 1 return counter res = get_length(text) print(res) | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.