instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
null
null
null
Coleraine High School Coleraine High School was an all-girls' grammar school located in Coleraine, County Londonderry, Northern Ireland. The High School, or Gordonville Ladies' Academy as it was originally known, was founded in 1875 in Alexander Terrace, Coleraine, by Mrs Long, assisted by her daughter and staff. From...
Explain closures in JS simply.
A closure is a function that remembers variables from the place where it was created, even after that outer function finished. Useful for private state and callbacks.
null
null
null
null
Velika, Bosnia and Herzegovina Velika () is a village in the municipality of Derventa, Bosnia and Herzegovina. Demographics 1991 213 total ethnic Muslims - 207 (97,18%) ethnic Yugoslavs - 4 (1,88%) Croats - 1 (0,46%) Serb - 1 (0,46%) References Villages in Republika Srpska Populated places in Derventa
Write code in Python to calculate the number of times a given number appears in a list.
list = [2, 4, 3, 5, 4, 2, 3] Number to find: 4
count = 0 for x in list: if x == 4: count = count +1 print("The number 4 appears in the list ", count, " times.")
null
null
null
null
Droga wojewódzka 216 Droga wojewódzka 216 (DW 216) je silnice v severním Polsku spojující města Reda a Hel. Její délka je 56 km. Poté, co opustí Puck, vede téměř souběžně s pobřežím Puckého zálivu. Vzhledem k tomu, že je to jediná silnice vedoucí na Helskou kosu, je využívána nejen místními řidiči, ale během léta i tu...
null
null
null
Zamagiria Zamagiria is a genus of small moths belonging to the snout moth family (Pyralidae). They are part of the huge snout moth subfamily Phycitinae, but their exact relationships are obscure, and they are currently not assigned to a particular tribe of Phycitinae. This genus is almost exclusively found in the Neot...
Using Java, create a class that implements sorting of an array of integers.
public class Sorting { public void sort(int[] array) { for (int i = 0; i < array.length - 1; i++) { int index = i; for (int j = i + 1; j < array.length; j++) { if (array[j] < array[index]) { index = j; // index of lower number } } int smallerNumber = array[index]; array[index] = array[i]; array[i] = smallerNumber; } } ...
null
Implement a function that creates a dictionary from two lists which contain the keys and values, respectively.
keys = ["name", "age", "city"] values = ["John", 30, "New York"]
def create_dictionary(keys, values): # Create an empty dictionary my_dict = {} # Populate the dictionary with elements from lists for i in range(len(keys)): my_dict[keys[i]] = values[i] return my_dict
null
Write a SAS Procedure to mean generate a boxplot
proc boxplot data=dataset; plot y*x; run;
null
null
null
null
Kaan Yıldırım Kaan Yıldırım (born 24 December 1986) is a Turkish actor and producer. Early life Yıldırım was born on 24 December 1986 in Istanbul, Turkey. His maternal grandmother is of Bosnian descent. His father, Hakan Yıldırım is the owner of a medical company. After getting a degree in marketing from Brunel Univer...
Napiš SQL: všichni uživatelé starší 18 let.
```sql SELECT * FROM users WHERE age > 18; ```
null
null
null
null
Breaking bulk Break bulk or breaking bulk may refer to: Breakbulk cargo, a shipping term for any loose material that must be loaded individually, and not in Intermodal containers nor in bulk as with oil or grain Breaking bulk (law), a legal term for taking anything out of a package or parcel or in any way destroying i...
Create a function that converts an arbitrary number from any base between 2 and 16 to its decimal representation.
int value = 0xFE;
public static int ConvertToDecimal (int value, int base) { int decimalValue = 0; int i = 0; while (value != 0 && i++ < 8) { int remainder = value % 10; value /= 10; decimalValue += remainder * (int)Math.Pow(base, i); } return decimalValue; }
null
null
null
null
3D modeling In 3D computer graphics, 3D modeling is the process of developing a mathematical coordinate-based representation of any surface of an object (inanimate or living) in three dimensions via specialized software by manipulating edges, vertices, and polygons in a simulated 3D space. Three-dimensional (3D) model...
null
null
null
Jindřiška Slavínská Jindřiška Slavínská, původním jménem Henrietta Rittersbergová z Rittersbergu (27. prosince 1843, Lvov (Ukrajina) – 11. července 1908, Praha) byla divadelní herečka, kterou divadelní historici řadí mezi tzv. Starou gardu Národního divadla. Život Jindřiška Slavínská (vlastním jménem německy Henrietta...
Write a JavaScript program that takes an array as input and prints its contents.
['Hello','World','!']
let inputArray = ['Hello', 'World', '!']; for (let i = 0; i < inputArray.length; i++) { console.log(inputArray[i]) }
null
Summarize key facts about „Pataua River“ clearly and accurately.
**Pataua River** The Pataua River is a tidal river of the Northland Region of New Zealand's North Island. It flows northeast from its origins east of Whangarei, reaching the Pacific Ocean at the southern end of Ngunguru Bay. At its mouth, the river is flanked by the settlements of Pataua North and Pataua South, which ...
null
Spočítej: 28 + 14 = ?
28 + 14 = 42
null
Summarize key facts about „Brockmoor Carters Yard“ clearly and accurately.
**Brockmoor Carters Yard** Brockmoor Carters Yard is a yard and stable at the Black Country Living Museum. It was originally located at Ogley Hay Road Burntwood, Cannock, having been built around 1900. It was dismantled and brought to the museum in the 1990s. History Horses were key for transport in the Black Country;...
null
Given a value, x, write a line of code that converts it from a float to an integer.
x = 25.32
int(x) # result: 25
null
Kolik je 15 - 11?
15 - 11 = 4
null
Create a HTML page with two buttons, one to display "Hello World!" and one to display "Goodbye World!"
<!DOCTYPE html> <html> <head> <title>Two Buttons</title> </head> <body> <button onclick="alert('Hello World!')">Print Hello World</button> <br /> <button onclick="alert('Goodbye World!')">Print Goodbye World</button> </body> </html>
null
Stručně shrň článek o tématu „Doug Sandom“ a uveď hlavní fakta.
**Doug Sandom** Doug Sandom (26. února 1930 – 27. února 2019) byl britský bubeník, který byl původním bubeníkem britské rockové kapely The Who. V jejich začátcích, když hráli jako The Detours (kolem roku 1962) se Sandom, který byl zedníkem, ke kapele připojil. Nicméně, zatímco ostatní členové kapely byli teenageři, Sa...
null
Stručně shrň článek o tématu „Minuta“ a uveď hlavní fakta.
**Minuta** Minuta (značka min) je jednotka času a označuje 1/60 hodiny (zlomek jedna šedesátina). Minuta se dále dělí na šedesát sekund. Jednotka pochází z babylónské šedesátkové soustavy a má společný původ jako úhlová minuta (značka ′). Šedesátina (tedy minuta) byla později označována latinsky jako pars minuta prima...
null
Provide an appropriate name for a Python module that contains a class for a user.
The appropriate name for the module could be "user_class.py".
null
Proč nepoužívat mysql_* funkce?
Jsou odstraněné z moderního PHP a nejsou bezpečné (SQL injection). Používej PDO nebo mysqli s prepared statements.
null
Generate all possible combinations of strings that can be formed using the given characters
chars = ["a", "b", "c"]
import itertools combinations = [''.join(i) for i in itertools.product(chars)] # Output: ["a", "b", "c", "ab", "ac", "ba", "bc", "ca", "cb", "abc", "acb", "bac", "bca", "cab", "cba"]
null
You've been asked to create a program to determine whether a given string is a palindrome
str = "madam"
#include <iostream> #include <string> bool is_palindrome(std::string str) { int i = 0; int j = str.length() - 1; while (i < j) { if (str[i] != str[j]) return false; i++; j--; } return true; } int main() { std::string str = "madam"; if (is_palindrome(str)) std::cout << str << " is a palindrome"; else std::cout << str <<...
null
Summarize key facts about „Charles Comber“ clearly and accurately.
**Charles Comber** Charles Fillery Comber (26 December 1891 – 4 February 1966) was an Australian rules footballer who played with Essendon in the Victorian Football League (VFL). Notes External links 1891 births 1966 deaths Australian rules footballers from Victoria (state) Essendon Football Club players People from B...
null
Write a code that finds all the prime numbers from 1 to n.
def is_prime(n): for i in range(2, n): if n % i == 0: return False return True def find_primes(n): primes = [] for i in range(2, n+1): if is_prime(i): primes.append(i) return primes find_primes(10) # Returns [2, 3, 5, 7]
null
Edit the following code to make it generate a random number between 1 and 10.
import random def generate_random_number(): return random.randint(0, 11)
import random def generate_random_number(): return random.randint(1, 10)
null
Create a class named 'Person' that has attributes such as name and age.
class Person: def __init__(self, name, age): self.name = name self.age = age
null
Spočítej 10×3
10 × 3 = 30
null
null
null
null
Uran Slovo uran nebo Uran má více významů: Uran (planeta) – planeta Sluneční soustavy uran (prvek) – chemický prvek uranová ruda – obecný termín pro některé horniny obsahující uran Úranos (také Uranos či Uranus) – bůh z řecké mytologie (původ jména) Tesla 4141A „Urán“ – československý typ televizoru Uran (magnetofon) ...
Stručně shrň článek o tématu „Pont Marie (stanice metra v Paříži)“ a uveď hlavní fakta.
**Pont Marie (stanice metra v Paříži)** Pont Marie je nepřestupní stanice pařížského metra na lince 7 ve 4. obvodu v Paříži. Nachází se na náměstí Place du Bataillon-Français-de-l’ONU-en-Corée. Historie Stanice byla otevřena 16. dubna 1926 při prodloužení linky 7, která sem byla dovedena z dnešní stanice Palais Royal ...
null
Check if each item in the following list is a string.
[3, "apple", 5]
for item in [3, "apple", 5]: if isinstance(item,str): print(item, "is a string") else: print(item, "is not a string")
null
Stručně shrň článek o tématu „Petr Švácha“ a uveď hlavní fakta.
**Petr Švácha** Petr Švácha (* 28. ledna 1942 Plzeň) je český spisovatel a básník, autor moderní poezie. Byl také redaktorem odborného periodika v oboru dopravy a logistiky. Životopis Vystudoval Pedagogickou fakultu Západočeské univerzity v Plzni. Poté pokračoval v postgraduálním studiu na Fakultě sociálních věd a pub...
null
null
null
null
Aneroid Aneroid (barometre anéroide, holosterikbarometer) je deformační přístroj určený k měření atmosférického tlaku (tlaku vzduchu). Aneroid (kovový tlakoměr) vynalezl v roce 1843 francouzský fyzik Lucien Vidie. Principem činnosti mechanického aneroidu je deformace pružného systému (čidla) působením tlaku vzduchu. K...
Summarize key facts about „Funahashi Seiichi“ clearly and accurately.
**Funahashi Seiichi** was a Japanese writer of short stories, novellas, novels and stage plays, active in the Shōwa period. Biography Funahashi was born in what is now part of Sumida, Tokyo, where his father was an assistant professor of engineering at Tokyo Imperial University. He had one sister and three younger bro...
null
Kolik je 16 × 7?
16 × 7 = 112
null
null
null
null
Tieluohan tea Tieluohan or Tie Luo Han (; pronounced ) is one of the Four Great Oolongs and a light Wuyi tea. Tieluohan is the cultivar responsible for one of the four best known Yán chá, "rock teas" grown on cliffs in the Wuyi Mountains in northern Fujian Province, China. Legend tells that this tea was created by a p...
null
null
null
Kovy Kovy tvoří společně s polokovy a nekovy tři hlavní skupiny chemických prvků. Rozdělení je prováděno s ohledem na vazebné a ionizační vlastnosti prvků. Kovy jsou charakterizované jako elektropozitivní, mají snahu předávat valenční elektrony a tvořit jednoatomové kationty. Kovy jsou hojně průmyslově využívány pro s...
Add the following comment to the following piece of code.
def func_name(val1): val2 = val1 * 5
def func_name(val1): # Multiply the value by 5 val2 = val1 * 5
null
null
null
null
Hus (surname) Hus is a surname. Notable people with the surname include: Jan Hus (–1415), Czech Catholic priest, philosopher, reformer, and master at Charles University in Prague; burned at the stake for heresy Charles Hus, dit Millet (1738–1802), political figure in Lower Canada Eugène Hus (1758–1823), born Pierre-Lo...
Assign a value to a variable based on the value of another variable.
int x = 0; int y = 1;
if (x == 0) { int y = 1; } else { int y = 0; }
null
What is 22 - 10?
22 - 10 = 12
null
Jaké jsou základní datové typy v Pythonu?
int, float, bool, str, list, tuple, dict, set, NoneType. Od 3.9+ i type hints jako list[int], dict[str, Any].
null
Summarize key facts about „Harold Pearson“ clearly and accurately.
**Harold Pearson** Harold Pearson may refer to: Harold Pearson (footballer, born 1901) (1901–1972), English footballer with Southampton and Coventry City Harold Pearson (footballer, born 1908) (1908–1994), English football goalkeeper with West Bromwich Albion Harold Pearson, 2nd Viscount Cowdray (1882–1933), British p...
null
null
null
null
The Weight of Glory and Other Addresses The Weight of Glory and Other Addresses is a collection of essays and addresses on Christianity by C.S. Lewis. It was first published as a single transcribed sermon, "The Weight of Glory" in 1941, appearing in the British journal, Theology, then in pamphlet form in 1942 by Socie...
Create a function which checks if a certain element is present in a given array.
arr = [2, 8, 3, 5] element = 8
const arr = [2, 8, 3, 5]; const element = 8; const checkElementInArray = (arr, element) => { return arr.includes(element); } console.log(checkElementInArray(arr, element)); // true
null
Add a method called “isEmpty” to the following Python class to check if the list is empty or not.
class List: def __init__(self, data): self.data = data
class List: def __init__(self, data): self.data = data def isEmpty(self): return not self.data
null
Edit this code so it prints the sum of the increasing odd numbers from 10 to 50
total = 0 for num in range(10, 50): if num % 2 == 0: total += num
total = 0 for num in range(10, 50, 2): total += num
null
Stručně shrň článek o tématu „Stadion Teddy“ a uveď hlavní fakta.
**Stadion Teddy** Stadion Teddy nebo stadion Teddyho Kolleka (hebrejsky: אצטדיון טדי, Itztadion Teddy) je fotbalový stadion v izraelském městě Jeruzalém pojmenovaný podle Theodora „Teddyho“ Kolleka. Je domovem klubů Bejtar Jeruzalém, Hapoel Jeruzalém a některé zápasy zde hraje izraelská fotbalová reprezentace. Otevřen...
null
null
null
null
Glatiramer-acetát Glatiramer-acetát je obecný název pro lék Copaxone či Copolymer 1 vyvíjený izraelskou farmaceutickou společností Teva Pharmaceuticals. Jedná se o imunomodulátor, který je ve většině zemí světa licencován pro snížení frekvence relapsů u relaps remitentní formy roztroušené sklerózy. Copaxon se aplikuje...
Edit this code to print out the square of a given number, using '#' as a marker.
num = 8
num = 8 # # # # # # # # # # # # # # # # #
null
null
null
null
Makati Makati , ) je město na Filipínách. Leží na ostrově Luzon, kde tvoří 1 z 16 měst národního centrálního regionu (NCR) - Metro Manila. Makati je spolu se sousedním městem Taguig finančním centrem Filipín, protože je zde velká koncentrace domácích i zahraničních firem. Má obyvatel. Sídlí zde muzeum historie a výtva...
Spočítej 7×5
7 × 5 = 35
null
Stručně shrň článek o tématu „Newtonův gravitační zákon“ a uveď hlavní fakta.
**Newtonův gravitační zákon** Newtonův gravitační zákon je fyzikální zákon, který popisuje gravitaci jako přitažlivou sílu – gravitační sílu, kterou na sebe působí tělesa v závislosti na svých hmotnostech a vzájemné vzdálenosti. Formuloval jej Isaac Newton na základě analýzy pohybu Měsíce kolem Země, planet kolem Slun...
null
Find the volume of a 3D cube in JavaScript.
length = 10
let length = 10; let volume = length * length * length; console.log(volume); // Output: 1000
null
Write HTML code to create a table containing the following information: Name, Age, Gender.
<table> <tr> <th>Name</th> <th>Age</th> <th>Gender</th> </tr> <tr> <td>John Smith</td> <td>30</td> <td>Male</td> </tr> </table>
null
Summarize key facts about „Penk River“ clearly and accurately.
**Penk River** The Penk River is a river of the Marlborough Region of New Zealand's South Island. It flows predominantly south from its origins on the slopes of Mount Horrible to reach the Awatere River southwest of Seddon. See also List of rivers of New Zealand References Rivers of the Marlborough Region Rivers of Ne...
null
Construct a SQL query to get all CustomerIDs from the Orders table if their OrderTotal is greater than 500.
SELECT CustomerID FROM Orders WHERE OrderTotal > 500;
null
Stručně shrň článek o tématu „Anna Sacher a její hotel“ a uveď hlavní fakta.
**Anna Sacher a její hotel** Anna Sacher a její hotel (německy Anna Sacher und ihr Hotel. Im Wien der Jahrhundertwende) je román rakouské spisovatelky Moniky Czerninové (* 1965 Klagenfurt), která se ve svých dílech zaměřuje na děj, jehož hlavní linií je silná osobnost. Postupně se zaměřovala na osobnosti s výraznou ch...
null
Stručně shrň článek o tématu „Mistrovství světa v atletice 2009 – Muži 200 metrů“ a uveď hlavní fakta.
**Mistrovství světa v atletice 2009 – Muži 200 metrů** Běh na 200 metrů mužů na Mistrovství světa v atletice 2009 se uskutečnil 18. a 20. srpna. Ve finálovém běhu zvítězil jamajský běžec Usain Bolt, když vytvořil již svůj druhý světový rekord na tomto šampionátu časem 19,19 s. Tím překonal svůj vlastní SR z OH v Pekin...
null
Create a class in Python and define several functions for that class.
class MyClass: def __init__(self): pass def add(self, x, y): return x + y def subtract(self, x, y): return x - y def multiply(self, x, y): return x * y def divide(self, x, y): return x / y
null
Create an HTML page with a form to sign up for a newsletter.
<html> <head> <title>Newsletter Sign Up</title> </head> <body> <form action="submit.html" method="POST"> <h1>Newsletter Sign Up</h1> Name: <input type="text" name="name"><br> Email: <input type="email" name="email"><br> <input type="submit" value="Submit"> </form> </body> </html>
null
HTML snippet: nav list
```html <nav aria-label="Hlavní"> <ul> <li><a href="/">Domů</a></li> <li><a href="/blog">Blog</a></li> </ul> </nav> ```
null
Summarize key facts about „K11 Art Foundation“ clearly and accurately.
**K11 Art Foundation** The K11 Art Foundation (KAF) is a non-profit art foundation based in Central, Hong Kong, named for an eponymous shopping centre and established by the shopping centre's operator. It supports the development of Chinese contemporary art from Greater China by providing creative incubation platforms...
null
Create a function in JavaScript that displays an alert with a given message.
function alertMe(message) { alert(message); }
null
Stručně shrň článek o tématu „Mary Stewartová“ a uveď hlavní fakta.
**Mary Stewartová** Mary Stewartová (provdaná Cottonová) (* 25. února 1956, Birmingham) je bývalá britská atletka, běžkyně, halová mistryně Evropy v běhu na 1500 metrů. Sportovní kariéra Startovala na olympiádě v Montrealu, v běhu na 1500 metrů doběhla pátá v semifinále. V následující sezóně se stala evropskou halovou...
null
Write a SQL query to join two tables on a specified conditions.
Table 1: id name age 1 a 15 2 b 18 3 c 20 Table 2: id class marks 1 10 80 2 10 75 3 11 70
SELECT table1.id, table1.name, table1.age, table2.class, table2.marks FROM table1 INNER JOIN table2 ON table1.id = table2.id WHERE table1.age > 18;
null
Write a callback function for the following requirements
This callback should be able to store the input emit it when triggered
def store_and_emit(data): stored_data = data def emit_stored_data(): return stored_data return emit_stored_data
null
PHP: Notice undefined index email
Klíč v `$_POST`/`$_GET` chybí. Piš `$_POST['email'] ?? ''` a validuj před použitím.
null
Answer the following question: What is the difference between a keyword and an identifier in Python?
In Python, a keyword is a reserved word that has a specific pre-defined meaning and purpose in the language, while an identifier is any name that you assign to a variable, function, class, module or any other object. Keywords are words that are reserved for specific functions and operations, while identifiers are used ...
null
Stručně shrň článek o tématu „Stará puška“ a uveď hlavní fakta.
**Stará puška** Stará puška (originální francouzský název Le Vieux Fusil) je koprodukční francouzsko-německé filmové válečné drama z roku 1975, které režíroval Robert Enrico. Film získal ve třech kategoriích cenu César a v dalších šesti kategoriích byl na ní nominován. Většina filmu se odehrává ve francouzské vesnici ...
null
Write a code to generate a list of common elements from two given lists.
list_1 = [1, 2, 3, 4] list_2 = [2, 4, 8, 16]
def common_list(list_1, list_2): output = [] for i in list_1: if i in list_2: output.append(i) return output # Result: common_list(list_1, list_2) # [2, 4]
null
Stručně shrň článek o tématu „Porte des Lilas (stanice metra v Paříži)“ a uveď hlavní fakta.
**Porte des Lilas (stanice metra v Paříži)** Porte des Lilas je přestupní stanice pařížského metra na linkách 3bis a 11 na hranicích 19. a 20. obvodu v Paříži. Nachází se na křižovatce Rue de Belleville, Boulevard Sérurier, Boulevard Mortier a Avenue Gambetta. Historie Stanice byla otevřena 27. listopadu 1921 jako sou...
null
Summarize key facts about „Von River“ clearly and accurately.
**Von River** The Von River is a river in New Zealand, flowing into Lake Wakatipu. It was named after explorer Nicholas von Tunzelmann. See also List of rivers of New Zealand References Rivers of Otago Rivers of New Zealand
null
Summarize key facts about „Big Bully (film)“ clearly and accurately.
**Big Bully (film)** Big Bully is a 1996 American black comedy film directed by Steve Miner, written by Mark Steven Johnson and starring Rick Moranis and Tom Arnold as two men, a childhood bully and his victim, as they reconnect as adults. It was panned by critics and was a box office bomb, earning only $2 million fro...
null
Write a Python program to create a numerical addition table
def addition_table(n): for i in range(1, n+1): for j in range(1, n+1): print(i + j, end= " ") print() addition_table(10)
null
null
null
null
Mahmud II of Johor Paduka Sri Sultan Mahmud Syah II ibni al-Marhum Sultan Ibrahim Syah (1675 or 1680 – 1699) was the Sultan of Johor, Pahang and Lingga (1685 – 3 September 1699). As he was young upon assumption of the throne, regents oversaw the affairs of state in Johor until the death of the Bendahara, a high offici...
jsi kokot?
Ne. Pojďme zůstat u věcné diskuze — s čím pomoct?
null
Create an array of size 10 with each element being a random integer between 0 and 1.
arr = [random.randint(0, 1) for _ in range(10)]
null
Initialize a variable with a list containing numbers from 1-100.
list_numbers = [i for i in range(1,101)]
null
Stručně shrň článek o tématu „Kino“ a uveď hlavní fakta.
**Kino** Kino neboli biograf je místo (obvykle budova), které je určeno k hromadnému sledování filmových představení. Filmový projektor, který je umístěn vzadu v projekční kabině, promítá film na plátno, které je umístěno vpředu před hledištěm. Do hlediště se běžný divák dostane teprve po zaplacení vstupného, obvykle ...
null
Write a code to update a given column using the data from another table.
Table1: Student Table2: Course Column to be updated: Student.CourseId
""" Write a code to update a given column using the data from another table """ # Create the UPDATE statement UPDATE Student SET CourseId = (SELECT Course.Id as CourseId FROM Course WHERE Course.Name = Student.CourseName)
null
null
null
null
Bosnians Bosnians (Serbo-Croatian: / ; / , / ) are people native to the country of Bosnia and Herzegovina, especially the historical region of Bosnia. As a common demonym, the term Bosnians refers to all inhabitants/citizens of the country, regardless of any ethnic, cultural or religious affiliation. It can also be us...
Create a function that rotates a given array by one element to the right.
arr = [1, 2, 3, 4, 5]
def rotate_arr(arr): return arr[-1:] + arr[:-1]
null
Stručně shrň článek o tématu „Csaba Horváth“ a uveď hlavní fakta.
**Csaba Horváth** Jméno a příjmení Csaba Horváth nosí vícero lidí: Csaba Horváth (fotbalista) (* 1982) – slovenský fotbalista Csaba Horváth (kanoista) (* 1971) – maďarský kanoista Csaba Horváth (politik) – maďarský politik Csaba Horváth (šachista) (* 1968) – maďarský šachista
null
Merge the elements of two given arrays into one.
[1, 2, 3] and [4, 5, 6]
[1, 2, 3, 4, 5, 6]
null
Create a program that reads an integer N and calculates the sum of the series 1/1 + 1/2 + 1/3 + . . . . . + 1/N.
def calculate_series_sum(N): summation = 0 for i in range(1, N+1): summation += (1 / i) return summation
null
Suggest a use case for reinforcement learning in business.
Reinforcement learning can be used in business to automate processes, optimize products and services, improve marketing campaigns, and develop better customer experiences. For example, a reinforcement learning model can learn the best way to stock products in a store and optimize product placement to maximize sales. Ad...
null
Develop a GUI application in Java to reverse a string.
User should be able to enter a string in the text field.
import java.awt.BorderLayout; import java.awt.event.*; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; class Reverse extends JFrame { JTextField inputTF; JTextField outputTF; JButton reverseBtn; Reverse() { inputTF = new JTextField(20); outputTF = new JTe...
null
Stručně shrň článek o tématu „Brasil Open 2018“ a uveď hlavní fakta.
**Brasil Open 2018** Brasil Open 2018 byl tenisový turnaj pořádaný jako součást mužského okruhu ATP World Tour, který se odehrával v hale Ginásio do Ibirapuera na antukových dvorcích, kam se po dvou letech vrátil z otevřeného areálu Esporte Clube Pinheiros. Probíhal mezi 26. únorem až 4. březnem 2018 v brazilském měst...
null
Jak seřadím seznam slovníků podle klíče age?
```python people.sort(key=lambda p: p["age"]) # nebo nový seznam: sorted(people, key=lambda p: p["age"]) ```
null
Spočítej: 8 + 10 = ?
8 + 10 = 18
null
Stručně shrň článek o tématu „Martin Horváth“ a uveď hlavní fakta.
**Martin Horváth** Martin Horváth (27. prosince 1982 – 21. dubna 2016 Tomice II) byl český fotbalový záložník. Jeho bratrem je zpěvák Vlastimil Horváth. Fotbalová kariéra V české lize hrál za FC Marila Příbram. Nastoupil ve 3 ligových utkáních. Ligová bilance Literatura Radovan Jelínek, Miloslav Jenšík a kol.: Atlas č...
null
Summarize key facts about „Stoke-on-Trent (disambiguation)“ clearly and accurately.
**Stoke-on-Trent (disambiguation)** Stoke-on-Trent is a city in Staffordshire, England. Stoke-on-Trent may also refer to: Stoke-upon-Trent, a constituent town of the city of Stoke-on-Trent Parliamentary constituencies Stoke-upon-Trent (UK Parliament constituency), a UK parliamentary constituency that existed between 1...
null
Create a simple program to capitalize the first letter of every sentence
def capitalize_sentences(text): sent_list = text.split(".") cap_sent_list = [sentence.capitalize() for sentence in sent_list] output = '.'.join(cap_sent_list) return output
null
Summarize key facts about „Peclers“ clearly and accurately.
**Peclers** Peclers is a trend consulting agency founded in Paris in 1970. The company has extensive industry experience and provides trend analysis, consumer reports, and brand strategies for multiple brands and creative individuals. Peclers' creative team develops seasonal trend books that serve as a foundation for ...
null