instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Design a SQL query to list all the unique authors in the book table. | Table: books Fields: id, title, author, is_subscribed | SELECT DISTINCT author FROM books; | null |
Stručně shrň článek o tématu „15. století“ a uveď hlavní fakta. | **15. století**
15. století je století 15. v pořadí od roku 1 podle křesťanského letopočtu. Začíná rokem 1401 a končí 1500. Během 15. století se historie začíná měnit v důsledku toho, že se celé světadíly i civilizace přestávají vyvíjet odděleně. Obchod mezi Afrikou, Asií a Evropou, výpravy čínských obchodníků za vzác... | null | |
Create a function in Python that prints out all prime numbers between two given numbers. | def print_primes(start, end): for num in range(start, end): if num > 1: for i in range(2, num): if (num % i) == 0: break else: print(num) | null | |
null | null | null | Besides, Nothing (B-Sides and Rarities, 2003–2009)
Besides, Nothing (B-Sides and Rarities, 2003–2009) is a two-disc rarities compilation released under the name PlayRadioPlay! (now Analog Rebellion). It was released alongside Analog Rebellion's Ancient Electrons on January 26, 2010. The album cover was released on his... |
Stručně shrň článek o tématu „Gymnázium Děčín“ a uveď hlavní fakta. | **Gymnázium Děčín**
Gymnázium Děčín je krajská příspěvková organizace, která poskytuje všeobecné středoškolské vzdělání formou čtyřletého a osmiletého studia. Historie V květnu 1897 přijalo děčínské městské zastupitelstvo návrh na založení gymnázia, předložený městskou radou. Současně byl ustaven městský přípravný výb... | null | |
null | null | null | Boltzmannova konstanta
Boltzmannova konstanta vyjadřuje vztah mezi termodynamickou teplotou a vnitřní energií plynu. Je číselně rovna dvěma třetinám tepelné kapacity jednoatomového ideálního plynu (např. vzácného) při stálém objemu vztažené na jednu molekulu. Boltzmannova konstanta také úzce souvisí s entropií, je jej... |
Stručně shrň článek o tématu „Elevační úhel“ a uveď hlavní fakta. | **Elevační úhel**
Elevační úhel při šikmém vrhu je úhel mezi vektorem počáteční rychlosti a vodorovnou rovinou. Na elevačním úhlu závisí délka a výška šikmého vrhu. Největší délky se při hodu ve vakuu dosáhne při úhlu 45°, pro hod ve vzduchu (tzn. s nezanedbatelným odporem vzduchu) je tento úhel o něco nižší. (Přesná ... | null | |
Convert the following SQL query to its equivalent Python expression. SELECT name FROM students WHERE age > 18 | [student['name'] for student in students if student['age'] > 18] | null | |
Create a JavaScript array and add the following items: "dog", "cat", "mouse", "bird". | let animals = ["dog", "cat", "mouse", "bird"]; | null | |
Stručně shrň článek o tématu „Žiletky“ a uveď hlavní fakta. | **Žiletky**
Žiletky je česko-francouzský film z roku 1994 natočený režisérem Zdeňkem Tycem. Mladý muž (Filip Topol) je neschopen naplněné lásky k dívce svých snů. Pomalu se stává alkoholikem. Když jej během vojenské služby dívka opustí, vyleze v depresi na vysoký tovární komín, kde přes třeskutou zimu vydrží celou noc... | null | |
null | null | null | Quintus Titurius Sabinus
Quintus Titurius Sabinus ( - říjen 54 př. n. l. Galie) byl římský legát a vojevůdce během galských válek Julia Caesara. Poprvé je zmíněn v roce 57 př. n. l. v tažení proti Rémům. V roce 56 př. n. l. ho Julius Caesar poslal se třemi legiemi na území dnešní Normandie proti povstaleckým kmenům Un... |
null | null | null | Tripotamos, Imathia
Tripotamos () is a village and a community of the City of Veria, Imathia, Greece. It is situated at 400 m elevation, 4 km southwest of Veria city centre. The community consists of the villages Tripotamos (population 553 in 2011), Kato Komnineio (pop. 43) and Komnineio (pop. 70). History The inhabit... |
Summarize key facts about „Waikamaka River“ clearly and accurately. | **Waikamaka River**
The Waikamaka River is a river of the Manawatū-Whanganui region of New Zealand's North Island. It is a tributary of the Whakaurekou River, part of the Rangitikei River system. The Waikamaka flows northwest from its sources in the Ruahine Range to reach the Whakaurekou east of Taihape. See also List... | null | |
Summarize key facts about „Yoal“ clearly and accurately. | **Yoal**
The yoal, often referred to as the ness yoal, is a clinker-built craft used traditionally in Shetland, Scotland. It is designed primarily for rowing, but also handles well under its traditional square sail when running before the wind or on a broad reach. The word is cognate with yawl and yole. Construction U... | null | |
Create a C program to swap two numbers using pointers. | #include <stdio.h> void swap(int *a, int *b) { int temp = *a; *a = *b; *b = temp; } int main() { int x = 50; int y = 100; printf("x = %d and y = %d\n", x, y); swap(&x, &y); printf("x = %d and y = %d\n", x, y); return 0; } | null | |
Using the HTML code below, add a link to an external web page. | <h2>My First Web Page</h2> <p>This is my first web page.</p> | <h2>My First Web Page</h2> <p>This is my first web page. <a href="url-to-some-site">Learn More</a>.</p> | null |
Stručně shrň článek o tématu „Lavrov“ a uveď hlavní fakta. | **Lavrov**
Existuje více nositelů příjmení Lavrov, Lavrovová: Alexandr Vasiljevič Lavrov (* 1949) – ruský literární vědec Andrej Lavrov (* 1962) – ruský házenkář Pjotr Lavrov (1823–1900) – ruský filozof a politik Sergej Lavrov (* 1950) – ruský diplomat a politik Natalja Lavrovová (1984–2010) – ruská moderní gymnastka | null | |
Kolik je 14 × 14? | 14 × 14 = 196 | null | |
null | null | null | Carlo Collodi
Carlo Collodi, vlastním jménem Carlo Lorenzini, (24. listopadu 1826, Florencie – 26. října 1890, tamtéž) byl italský novinář a spisovatel. Pseudonym Collodi si zvolil roku 1856 podle vesnice Collodi, dnes části města Pescia, odkud pocházela jeho matka Angela Orzaliová. Dílo Pinocchiova dobrodružství – je... |
Napiš Python funkci: vrátí True pokud je sudé (`is_even`). | ```python def is_even(n: int) -> bool: return n % 2 == 0 ``` | null | |
Stručně shrň článek o tématu „František Jelínek (skaut)“ a uveď hlavní fakta. | **František Jelínek (skaut)**
František Jelínek (24. listopadu 1921 Brno – 26. listopadu 2002 Brno) byl skautský funkcionář a autor vzpomínek na koncentrační tábor Mittelbau-Dora, ve kterém sabotoval výrobu raket V-2. Život Mládí Vyrostl v Brně, kde vystudoval nižší reálné gymnázium a obchodní akademii. Do skautského ... | null | |
Kolik je 6 × 6? | 6 × 6 = 36 | null | |
Napiš v Pythonu bubble sort. | ```python def bubble_sort(a: list[int]) -> list[int]: a = a[:] n = len(a) for i in range(n): for j in range(0, n - i - 1): if a[j] > a[j + 1]: a[j], a[j + 1] = a[j + 1], a[j] return a ``` | null | |
Stručně shrň článek o tématu „Běhej lesy“ a uveď hlavní fakta. | **Běhej lesy**
Běhej lesy je název každoročního cyklu 8 závodů v přírodě, který sestává z běžeckých tras na měkkém povrchu. Závody se běží v různých lokalitách ČR, přičemž se vždy běží kratší (kolem 10 kilometrů) a delší trasa (zhruba 21 kilometrů). Součástí bývají i dětské závody či týmové soutěže. V sezóně 2021 byly... | null | |
Summarize key facts about „Puppy (disambiguation)“ clearly and accurately. | **Puppy (disambiguation)**
A puppy is a juvenile dog. Puppy or puppies may also refer to: Art and literature Puppy (2005 film), an independent Australian feature film Puppy (2019 film), an Indian Tamil-language comedy drama film Puppy (2022 film), a South Korean film Puppy (Alice's Adventures in Wonderland), a fiction... | null | |
Create a HTML page that includes a table with 3 columns and 3 rows. | <html> <head> <title>Table Example</title> </head> <body> <table> <tr> <th>Column 1 Header</th> <th>Column 2 Header</th> <th>Column 3 Header</th> </tr> <tr> <td>Row 1, Column 1</td> <td>Row 1, Column 2</td> <td>Row 1, Column 3</td> </tr> <tr> <td>Row 2, Column 1</td> <td>Row 2, Column 2</td> <td>Row 2, Column 3</td> </... | null | |
Hey | Zdravím! Napiš úkol — rád pomůžu. | null | |
Write a method to sum up two matrices | Matrix A: [[3, 5, 7], [1, 6, 9]] Matrix B: [[4, 8, 2], [3, 5, 7]] | def matrix_addition(A, B): if len(A) != len(B) or len(A[0]) != len(B[0]): return 'Matrices cannot be added!' else: result = [[0 for i in range(len(A[0]))] for j in range(len(A))] for i in range(len(A)): for j in range(len(A[0])): result[i][j] = A[i][j] + B[i][j] return result A = [[3, 5, 7], [1, 6, 9]] B = [[4, 8, 2], ... | null |
Summarize key facts about „William Nichol (cricketer)“ clearly and accurately. | **William Nichol (cricketer)**
William Nichol (3 December 1912 – 1 June 1973) was a Scottish cricketer. Nichol was an all-rounder made two centuries for Scotland, the first an unbeaten 139 against Warwickshire in May 1951 and the other an even hundred against Ireland a couple of months later. His best bowling performa... | null | |
Write a C# function which takes 2 strings as parameters and returns a new string which is a concatenation of the two parameters. | 'Hello', 'World!' | string ConcatenateStrings(string str1, string str2) { return str1 + str2; } | null |
null | null | null | Telmo
Telmo may refer to: People Saint Telmo (died 303), also known as Erasmus of Formia, Christian martyr and saint Pedro González Telmo (1190-1246), Castilian friar and priest Luis Telmo Paz y Miño (1884-1962), President of the Supreme Military Junta of Ecuador Telmo Vargas (1912-2013), Ecuadorian Chief of Staff of ... |
Using the comment as a guide, replace the placeholder with the proper code to remove all duplicates from a list. | mylist = [1, 2, 3, 2, 4, 2] # TODO: write code to remove all duplicates from mylist | def remove_duplicates(mylist): mylist = list(dict.fromkeys(mylist)) return mylist if __name__ == '__main__': mylist = [1, 2, 3, 2, 4, 2] print(remove_duplicates(mylist)) | null |
null | null | null | František Xaver Paleček
J.M. can. František Xaver Paleček (29. října 1859, Miličín – 16. ledna 1926, Kovářov) byl jihočeský římskokatolický kněz, farář v Kovářově a čestný kanovník Katedrální kapituly u sv. Mikuláše v Českých Budějovicích. Proslul pastorační horlivostí, pro kterou byl přirovnáván ke svatému faráři z A... |
Write a regular expression pattern to match a string starting with 'hello' and with two numbers after it. | ^hello[0-9]{2}$ | null | |
Stručně shrň článek o tématu „Culture Beat“ a uveď hlavní fakta. | **Culture Beat**
Culture Beat je německý eurodance projekt založený v roce 1989 Torsten Fenslauem. Nejúspěšnější píseň této skupiny byl singl „Mr. Vain“ z roku 1993, což byl #1 hit ve většině evropských státech. Prodali víc než 10 miliónů výlisků. Členové kapely Lana Earl – vokály (1989–1993) Torsten Fenslau – klávesy... | null | |
Summarize key facts about „The Dish“ clearly and accurately. | **The Dish**
The Dish is a 2000 Australian historical comedy-drama film that tells the story of the Parkes Observatory's role in relaying live television of humanity's first steps on the Moon during the Apollo 11 mission in 1969. It was the top-grossing Australian film in 2000. Plot An old man drives up to the Parkes ... | null | |
Explain what is the purpose of the try-except block | The purpose of the try-except block is to handle exceptions that may be raised while a program is executing, so as to avoid crashing of the program. | null | |
Stručně shrň článek o tématu „Reto Rossetti“ a uveď hlavní fakta. | **Reto Rossetti**
Reto Rossetti (11. dubna 1909 – 20. září 1994) byl esperantský básník, profesor, původem Švýcar, po přesídlení do Velké Británie se hlásil ke skotské esperantské básnické škole. Debutoval básnickou sbírkou Kvaropo (Čtveřice) společně s W. Auldem, J. Francisem a J. Dinwoodiem. Jeho básně, povídky a es... | null | |
null | null | null | Gloria Gaynor
Gloria Gaynor (vlastním jménem Gloria Fowles, * 7. září 1943) je americká zpěvačka disco éry sedmdesátých let. Mezi její hity patří: "I Will Survive" (1979), "Never Can Say Goodbye" (1974), "Let Me Know (I Have A Right)" (1980) a "I Am What I Am" (1983). Gloria začínala v šedesátých letech jako zpěvačka ... |
null | null | null | Novelizace Ústavy České republiky zavádějící přímou volbu prezidenta republiky
Novelizace Ústavy České republiky zavádějící přímou volbu prezidenta republiky byla provedena ústavním zákonem č. 71/2012 Sb., který změnil Ústavu České republiky, a to tak, že dosavadní nepřímý způsob volby hlavy státu prostřednictvím voli... |
null | null | null | Museum of Toys and Automata
The Museum of Toys and Automata (in Catalan language Museu de Joguets i Autòmats) was a museum of toys and automata located in Verdú, in central Catalonia, Spain. It opened in 2004, and in 2013 it closed and the building was converted to an art gallery. The museum was founded by local man M... |
Write a Python function `first_n` that vrátí prvních n prvků. | ```python def first_n(xs: list, n: int) -> list: return xs[:n] ``` | null | |
Summarize key facts about „List of hospitals in Hawaii“ clearly and accurately. | **List of hospitals in Hawaii**
This is a list of hospitals in Hawaii (U.S. state), sorted by island and hospital name. According to the American Hospital Directory, there were 28 hospitals in Hawaii in 2020. There are hospitals on six of Hawaii's 137 islands. Hawaii (big island) The following hospitals are on the big... | null | |
Create a SQL query to select all items from a table named "products" that have a price greater than 50. | SELECT * FROM products WHERE price > 50; | null | |
Stručně shrň článek o tématu „Gastronomie“ a uveď hlavní fakta. | **Gastronomie**
Gastronomie v překladu znamená věda o žaludku. V širším pojetí je to nauka o vztahu kultury a potravy s dopadem na pohodu a zdraví organismu. V užším pojetí jde o kuchařské nebo kulinářské umění (fr. l'art culinaire), které v sobě snoubí dokonalé dovednosti přípravy pokrmů s úctou k surovinám a s vědom... | null | |
PHP snippet: sum array | ```php function sum_array(array $a): float { return array_sum($a); } ``` | null | |
What is the difference between int and float data types? | The main difference between int and float data types is that an int is a data type used to represent whole numbers, while a float is a data type used to represent numbers with decimal points. An int has a greater range of values than a float, but a float is more precise. | null | |
null | null | null | Rádio Blaník
Rádio Blaník je česká nejposlouchanější komerční celoplošná rozhlasová stanice, která kromě pravidelných krátkých zpráv (regionálních i centrálních) vysílá směs hudby středního proudu jak zahraničních, tak ve velkém českých interpretů. V podílu na trhu má v mnoha krajích 1. místo (Středočeský, Plzeňský, K... |
Summarize key facts about „Beosus quadripunctatus“ clearly and accurately. | **Beosus quadripunctatus**
Beosus quadripunctatus is a species of dirt-colored seed bug in the family Rhyparochromidae, found in Europe, the Middle East, and western Asia. Subspecies These two subspecies belong to the species Beosus quadripunctatus: Beosus quadripunctatus nigripes Tamanini, 1946 Beosus quadripunctatus... | null | |
Construct a C# class that stores a student's ID and name and defines a method to return the ID. | public class Student { private int id; private string name; public Student(int id, string name) { this.id = id; this.name = name; } public int GetID() { return this.id; } } | null | |
Compute the sum of the prime numbers from 0 to n using Java. | n = 10 | public class PrimeSum{ public static int sumOfPrime(int n){ int sum = 0; for(int i=2; i<=n; i++){ if(isPrime(i)) sum += i; } return sum; } private static boolean isPrime(int n){ for(int i=2; i<n; i++){ if(n%i == 0) return false; } return true; } } | null |
Create a basic query using two variables. | sky, blue | SELECT * FROM table WHERE sky = 'blue'; | null |
Find out the number of odd numbers in an array | [2, 9, 0, 5, 3] | def odd_num(arr): count = 0 for num in arr: if num % 2 != 0: count += 1 return count # Test Array arr = [2, 9, 0, 5, 3] # Function Call odd_num(arr) | null |
What is the purpose of the given CSS declaration? | font-style: italic; | The purpose of the given CSS declaration is to make the font appear italicized. | null |
null | null | null | Jean-Pierre Berçot
Jean-Pierre Berçot was the French ambassador to Chad until November 2006. On 1 August 2004, he said that France would deploy 200 soldiers to help secure Chad's eastern border with Sudan's conflict-torn Darfur region. He was prefect of Saint-Pierre and Miquelon. Notes Year of birth missing (living pe... |
Stručně shrň článek o tématu „Anna Rossinelli“ a uveď hlavní fakta. | **Anna Rossinelli**
Anna Rossinelli (* 20. dubna 1987 Basilej) je švýcarská zpěvačka a skladatelka. Spolu s Manuelem Meiselem a Georgem Dillierem vystupuje v pop-soulovém triu. To působí pod jejím jménem.Reprezentovala Švýcarsko na Eurovision Song Contest 2011 v Düsseldorfu, kde jako tamější první zástupce od roku 200... | null | |
null | null | null | Saint-Fargeau (stanice metra v Paříži)
Saint-Fargeau je nepřestupní stanice pařížského metra na lince 3bis ve 20. obvodu v Paříži. Nachází se na náměstí Place Saint-Fargeau. Historie Stanice byla otevřena 27. listopadu 1921 jako součást vedlejší větve linky 3 ze stanice Gambetta. Od 27. března 1971 je součástí linky 3... |
Create a class that contains two methods: one to generate a random number between a given range, and one to create a list of "n" random numbers. | n = 10, min = 0, max = 100 | class RandomNumberList: def __init__(self): self.numbers = [] def generate_random(self, min, max): return random.randint(min, max) def create_list(self, n, min, max): # Generate a list of n random numbers between min and max self.numbers = [self.generate_random(min, max) for _ in range(n)] return self.numbers | null |
Suggest a completion for the following JavaScript code to determine if a number is an odd number. | function isOddNumber( | function isOddNumber(num) { return num % 2 !== 0; } | null |
Summarize key facts about „The Battalion in the Shadows“ clearly and accurately. | **The Battalion in the Shadows**
The Battalion in the Shadows (Spanish: El batallón de las sombras) is a 1957 Spanish drama film directed by Manuel Mur Oti. Summary The film narrates the dreams, hopes and passions of the inhabitants of a crowded tenement house. Cast Amparo Rivelles as Magdalena José Suárez as Pepe Rol... | null | |
Write an algorithm to count the number of times the letter 'e' appears in a given string. | my_string = "Hello World" | def count_letter_e(my_string): count = 0 for char in my_string: if char == 'e': count += 1 return count | null |
Summarize key facts about „Trossingen Formation“ clearly and accurately. | **Trossingen Formation**
The Trossingen Formation, formerly the Knollenmergel, is a geological formation in Germany and Switzerland. It dates back to the late Norian-Rhaetian. Vertebrate paleofauna See also List of dinosaur-bearing rock formations List of fossiliferous stratigraphic units in Germany List of fossilifer... | null | |
You need to add a feature to the existing code in the given input. | class Car: def __init__(self, make, model, year): self.make = make self.model = model self.year = year | class Car: def __init__(self, make, model, year): self.make = make self.model = model self.year = year self.mileage = 0 def getMileage(self): return self.mileage | null |
Summarize key facts about „Battle of Orthez (1569)“ clearly and accurately. | **Battle of Orthez (1569)**
The Battle of Orthez was fought during the French Wars of Religion, at Orthez on Wednesday August 24, 1569. Huguenot forces under the leadership of Gabriel de Montgomery defeated Royalist forces under General Terride in French Navarre. Following the battle, Huguenot forces killed many of th... | null | |
null | null | null | Monsieur Camembert
Monsieur Camembert is a five-piece Gypsy fusion band formed in Sydney, Australia in 1997. They have won three ARIA Music Awards for Best World Music Album in 2002 for Live on Stage (released in 2001), in 2003 for Absynthe and in 2005 for Monsieur Camembert. The linguistic repertoire of Monsieur Came... |
Napiš SQL: vyber 9 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 9; ``` | null | |
Stručně shrň článek o tématu „Jacob Grimm“ a uveď hlavní fakta. | **Jacob Grimm**
Jacob Ludwig Carl Grimm (4. ledna 1785 Hanau – 20. září 1863 Berlín) byl německý právník, který proslul jako jazykovědec, lexikograf, spoluzakladatel germanistiky jako vědního oboru a sběratel lidových pohádek (spolu s bratrem Wilhelmem Grimmem). Roku 1802 se zapsal na univerzitu v Marburgu, kde studov... | null | |
Stručně shrň článek o tématu „Hydrodynamický paradox“ a uveď hlavní fakta. | **Hydrodynamický paradox**
Hydrodynamický paradox (hydrodynamické paradoxon) je skutečnost, že pokles tlaku v proudící kapalině je přímo úměrný nárůstu druhé mocniny rychlosti proudění kapaliny, neboli že v užší části trubice, kde kapalina proudí rychleji, je v kapalině menší tlak. Závislost tlaku a rychlosti proudění... | null | |
Summarize key facts about „Stephen McNally (disambiguation)“ clearly and accurately. | **Stephen McNally (disambiguation)**
Stephen McNally (1911–1994) was an American actor. Stephen McNally may also refer to: Stephen McNally (footballer) (born 1984), Scottish football (soccer) player Stephen McNally (musician) (born 1978), English singer / songwriter Steve McNally (doctor), British sports doctor for Ma... | null | |
null | null | null | Dmitry Mamin-Sibiryak
Dmitry Narkisovich Mamin-Sibiryak (; October 25, 1852 – November 2, 1912) was a Russian writer. He is most well known for his novels and short stories about life in the Ural Mountains. Biography Early life Mamin-Sibiryak was born in Visim, Perm Governorate in the Urals (in present-day Sverdlovsk ... |
Summarize key facts about „Javaher Deh“ clearly and accurately. | **Javaher Deh**
Javaher Deh (, also Romanized as Javāher Deh) 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 170, in 76 families. The villagers are engaged in animal husbandry, agriculture and horticulture, and its h... | null | |
Generate a regex expression to find all words starting with "ha" | ^ha\w+ | null | |
Spočítej: 22 + 2 = ? | 22 + 2 = 24 | null | |
Construct a for loop in Java for iterating through an array. | for (int i = 0; i < array.length; i++) { System.out.println(array[i]); } | null | |
Write a TensorFlow program to construct a basic neural network | import tensorflow as tf # Set up the layers for the model model = tf.keras.models.Sequential([ # Set up the first layer tf.keras.layers.Dense(64, input_shape = (784, ), activation = 'relu'), # Set up the second layer tf.keras.layers.Dense(64, activation = 'relu'), # Set up the output layer tf.keras.layers.Dense(10, act... | null | |
Summarize key facts about „Roger Madruga“ clearly and accurately. | **Roger Madruga**
Roger Madruga (born 1964 in Rio de Janeiro) is a former international freestyle swimmer from Brazil. He is the younger brother of Djan Madruga. International career He was at the 1979 Pan American Games, in San Juan, where he finished 12th in the 400-metre individual medley, and 16th in the 400-metre... | null | |
null | null | null | Green Algeria Alliance
The Green Algeria Alliance (; ), short Green Alliance was an Islamist coalition of political parties, created on 7 March 2012 for the Algerian legislative election, 2012. It consisted of the Movement of Society for Peace (Hamas), Islamic Renaissance Movement (Ennahda) and the Movement for Nation... |
Write a Python function `sum_list` that sečte čísla v seznamu. | ```python def sum_list(xs: list[float]) -> float: return sum(xs) ``` | null | |
null | null | null | Římskokatolická farnost Vlkovice
Římskokatolická farnost Vlkovice je farnost Římskokatolické církve v děkanátu Bílovec ostravsko-opavské diecéze. Předchůdcem farnosti Vlkovice byla farnost se sídlem v Dolejších Kunčicích. Tamější kostel nakazuje zřídit již zakládací listina vsi vystavená Dětřichem z Fulštejna dne 25. ... |
Construct a pandas dataframe from 4 dictionaries. | d1 = { 'name' : ["Alice", "Bob", "Charlie"], 'age' : [24, 45, 37], } d2 = { 'weight' : [87, 66, 65], 'height' : [165, 179, 173], } d3 = { 'income' : [3000, 4500, 4800], 'job' : ["engineer", "teacher", "secretary"], } d4 = { 'city' : ["Glasgow", "New York", "Paris"], 'country' : ["Scotland", "USA", "France"], } | import pandas as pd df = pd.DataFrame({ 'name': d1['name'], 'age': d1['age'], 'weight': d2['weight'], 'height': d2['height'], 'income': d3['income'], 'job': d3['job'], 'city': d4['city'], 'country': d4['country'] }) | null |
Create a dictionary where each key is a unique integer and the value of each key is the corresponding product of the two given numbers. | x = 15 y = 2 | d = {} for i in range(1, x + 1): d[i] = i * y print(d) | null |
null | null | null | Edwin de Kock
Edwin de Kock (* 9. března 1930) je jihoafrický esperantský spisovatel a básník. Kockova původní díla jsou: OMBROJ DE LA KVARA DIMENSIO, eseje, básně POEMARO KAJ PROZEROJ. PLUKONSTRUE, KVIN ELEMENTOJ a velká epopej LA KONFLIKTO DE EPOKOJ, JAPANESKOJ, básně. Související články Esperantská literatura Exter... |
Summarize key facts about „Responsible Future (Iceland)“ clearly and accurately. | **Responsible Future (Iceland)**
Responsible Future (; AF) is an Icelandic political party. It was established on 27 July 2021. The party's formation was preceded by Jóhannes Loftsson's writings in 2020, in which he voiced very strong opposition to harsh disease control measures. The party ran in the 2021 parliamentar... | null | |
Stručně shrň článek o tématu „Labutí princezna“ a uveď hlavní fakta. | **Labutí princezna**
Labutí princezna, anglicky: The Swan Princess, je americký rodinný animovaný film, jde o muzikál respektive o filmovou pohádku napsanou na motivy baletu Labutí jezero z roku 1994. Režii snímku provedl Richard Rich. Děj filmu vypráví příběh o zakleté princezně Odettě, kterou unese zlý černokněžník,... | null | |
Write a function that given a string of character, returns the number of vowels in it. | Example string: "hello world" | def count_vowels(s): vowels = 'aeiou' count = 0 for char in s: if char in vowels: count += 1 return count | null |
Stručně shrň článek o tématu „PCC Intermodal“ a uveď hlavní fakta. | **PCC Intermodal**
PCC Intermodal S.A., dříve PCC Rail Containers Sp. z o.o. (VKM: PCCC), je polský operátor kombinované dopravy a železniční dopravce se sídlem v Gdyni. Společnost patří do skupiny PCC SE. Historie Firma vznikla v červenci 2005 a o měsíc později zahájila provoz pravidelného kontejnerového vlaku (shutt... | null | |
Kolik je 2 × 9? | 2 × 9 = 18 | null | |
You need to code a program that prints out the nth Fibonacci number. | n=10 | def Fibonacci(n): if n<0: print("Incorrect input") elif n==1: return 0 elif n==2: return 1 else: return Fibonacci(n-1)+Fibonacci(n-2) print(Fibonacci(10)) | null |
Summarize key facts about „Hajjiabad, Qaem Shahr“ clearly and accurately. | **Hajjiabad, Qaem Shahr**
Hajjiabad (, also Romanized as Ḩājjīābād) is a village in Nowkand Kola Rural District, in the Central District of Qaem Shahr County, Mazandaran Province, Iran. At the 2006 census, its population was 594, in 150 families. References Populated places in Qaem Shahr County | null | |
Who are you? | I'm KucLab V0.3, an AI assistant for Czech, English, and coding (Python, JavaScript, HTML, PHP). | null | |
Summarize key facts about „Glischrocaryon“ clearly and accurately. | **Glischrocaryon**
Glischrocaryon (Common name: Golden pennants) is a genus of flowering plants in the family Haloragaceae, endemic to Australia. Species occur in New South Wales, Victoria, South Australia and Western Australia include: Glischrocaryon angustifolium (Nees) M.L. Moody & Les Glischrocaryon aureum (Lindl.... | null | |
Kolik je 27 - 9? | 27 - 9 = 18 | null | |
Design an SQL query to select the first and last name of all users who are over the age of 25. | SELECT first_name, last_name FROM users WHERE age > 25 | null | |
Write a bash script that searches for a given text string in a directory tree recursively. | #!/bin/bash search_string="text string" directory="directory_name" #searching for text string recursive in the directory grep -rnw $directory -e "$search_string" | null | |
How would you create a function that takes a list of strings as an argument and returns the total number of characters in all the strings together? | def count_characters(stringList): count = 0 for string in stringList: count += len(string) return count | null | |
null | null | null | 2020–21 Fulham F.C. season
The 2020–21 Fulham F.C. season was the club's 123rd season in existence and the first season back in the top flight of English football. In addition to the domestic league, Fulham participated in this season's editions of the FA Cup and the EFL Cup. Players Current squad Transfers Transfers ... |
Stručně shrň článek o tématu „Hendrik Adamson“ a uveď hlavní fakta. | **Hendrik Adamson**
Hendrik Adamson (6. října/24. září jul. 1891 Kärstna – 7. března 1946 Tuhalaane, Estonsko) byl esperantsky píšící estonský spisovatel a učitel. Jeho hlavním dílem je román Aŭli (Auli), o životě malého chlapce. Mezi jeho básnická díla patří sbírka (Večerní píseň). Mnoho jeho básní vyšlo na stranách ... | null | |
Kolik je 18 × 6? | 18 × 6 = 108 | null | |
Given a sentence, write the code to extract the third word from the sentence. | sentence = "I am a coder" | sentence = "I am a coder" words = sentence.split(' ') third_word = words[2] print(third_word) #output: 'a' | null |
null | null | null | Indoevropské jazyky
Indoevropská jazyková rodina (tento pojem zavedl poprvé roku 1813 Thomas Young) je skupina jazyků, které se společně vyvíjely v rozsáhlých oblastech Eurasie z předpokládaného indoevropského prajazyka. Indoevropské jazyky jsou nejrozšířenější jazykovou rodinou na Zemi. Původ O původu a šíření indoev... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.