instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Stručně shrň článek o tématu „Pudr a benzín“ a uveď hlavní fakta.
**Pudr a benzín** Pudr a benzín je česká filmová komedie Jindřicha Honzla z roku 1931. Písničkový film představuje policistu Jana Wericha a taxikáře Jiřího Voskovce, kteří usilují o známou herečku a snaží se ji pobavit na výletě. Základní údaje Námět: Jan Werich, Jiří Voskovec Scénář: Jan Werich, Jiří Voskovec, Jindři...
null
Print the total number of characters in a given string using JavaScript.
let str = "Hello World!"; let num_chars = str.length; console.log(`The string has ${num_chars} characters.`);
null
null
null
null
Ngasa people The Ngasa or Ngas also known as Ongamo (Wangasa, in Swahili) are an ethnic and linguistic group based on the northeastern slopes of Mount Kilimanjaro in Rombo District, Kilimanjaro Region, Tanzania. In 2000 the Nilotic ethnic Ngasa population was estimated to number 4,285, with only 200 to 300 members con...
Compare the given two strings and return true if the strings match.
String 1: hello String 2: hello
if (str1 == str2) return true; else return false;
null
null
null
null
Pražský student Pražský student (v německém originále Der Student von Prag) je německý němý film Stellana Ryea z roku 1913, který je považován za první film žánru hororu. Pod stejným názvem byly natočeny remaky, a to v letech 1926, 1935 a 2004. Příběh je postaven na známém syžetu o zaprodaném stínu, jejž literárně zpr...
null
null
null
Tepelná kapacita Tepelná kapacita je fyzikální veličina, která vyjadřuje množství tepla, kterým se těleso ohřeje o jednotkový teplotní rozdíl (v SI 1 kelvin). Protože teplo není stavová veličina, je nutné u tepelné kapacity specifikovat i tepelný děj, při kterém k přenosu tepla a ke změně teploty dochází, zpravidla po...
Co je bug? (stručně)
Bug je chyba v programu, kvůli které se chová jinak, než autor chtěl.
null
Create an example chatbot dialogue using the given context.
Context: You're a pizza maker
User: Hi, I'm looking for a pizza Bot: Hi there! What kind of pizza are you looking for? User: I'd like a pepperoni pizza with extra cheese Bot: Sure, one pepperoni pizza with extra cheese coming right up! Anything else I can do for you?
null
null
null
null
Situace (edice) Situace byla edice publikací o výtvarném umění, kterou vydávala Jazzová sekce Svazu hudebníků v sedmdesátých a osmdesátých letech 20. století. Edici řídil Karel Srp mladší. Publikace měly jednotnou grafickou úpravu, jejímž autorem byl Joska Skalník, formát A4 a rozsah 20 stran černobílého tisku na kříd...
Suggest a code that combines two lists of strings without duplicates.
list1 = ["one", "two", "three"] list2 = ["two", "four", "five"]
# Combine two lists of strings without duplicates list1 = ["one", "two", "three"] list2 = ["two", "four", "five"] # Create a new set that only contains distinct elements distinct_elements = set(list1 + list2) # Convert the set back to a list combined_list = list(distinct_elements)
null
Stručně shrň článek o tématu „Moment síly“ a uveď hlavní fakta.
**Moment síly** je vektorová fyzikální veličina, která vyjadřuje míru otáčivého účinku síly. Otáčivý účinek síly se vztahuje k danému bodu nebo přímce. Bod, ke kterému se moment síly určuje, se nazývá momentovým bodem. Kolmá vzdálenost síly od její osy k bodu je tzv. rameno síly. Bod, vůči němuž se určuje moment síly,...
null
Create a Swift program to print out the following: “Hello, World!”
print("Hello, World!")
null
Stručně shrň článek o tématu „WeChat“ a uveď hlavní fakta.
**WeChat** WeChat (čínsky 微信, pinyin Wēixìn) je multifunkční aplikace vyvíjená čínskou společností Tencent, známá v Číně pod názvem Weixin. WeChat je sociální médium a sociální síť s řadou funkcí jako instant messaging, hlasové zprávy, videohovory, sdílení fotek, objednání taxislužby, donášky jídla z restaurací, rezer...
null
Kolik je 15 - 7?
15 - 7 = 8
null
Kolik je 14 × 2?
14 × 2 = 28
null
How would you extend the following code to add the features "undo" and "redo"?
def add_item(item, list): list.append(item)
def add_item(item, list): list.append(item) undo_list.append(item) ​ def undo_item(item, list): if len(list) > 0: last_item = list.pop() redo_list.append(last_item) def redo_item(item, list): if len(redo_list) > 0: last_item = redo_list.pop() list.append(last_item)
null
Spočítej 7×10
7 × 10 = 70
null
null
null
null
Meje, Cirkulane Meje () is a small settlement in the Municipality of Cirkulane in the Haloze area of eastern Slovenia. It lies at the top end of the valley of Belica Creek south of Cirkulane, right on the border with Croatia. The area traditionally belonged to the Styria region. It is now included in the Drava Statist...
Implement a function in C++ to print a pyramid of stars
#include <iostream> using namespace std; // Function to demonstrate printing pattern void pyramid(int n) { // outer loop to handle number of rows // n in this case for (int i=0; i<n; i++) { // inner loop to handle number of columns // values changing acc. to outer loop for (int j=0; j<=i; j++ ) { // printing stars cout...
null
Stručně shrň článek o tématu „Pozor, vizita!“ a uveď hlavní fakta.
**Pozor, vizita!** Pozor, vizita! je český barevný film režiséra Karla Kachyni z roku 1981 natočený na námět Adolfa Branalda ve Filmovém studiu Barrandov. Děj Hlavním hrdinou je světoběžník v podání Rudolfa Hrušínského, který je nevyléčitelným bacilonosičem a musí být izolován ve sterilním nemocničním prostředí, aby n...
null
Stručně shrň článek o tématu „Arthur Troop“ a uveď hlavní fakta.
**Arthur Troop** Arthur Troop (15. prosince 1914, Lincoln, Anglie – 30. listopadu 2000, Peterborough, Anglie) byl anglický policista, který v roce 1950 založil Mezinárodní policejní asociaci (IPA). Vystudoval na Ruskin College a v Oxfordu (ekonomii), 19. 6. 1936 se stal policistou a 1. 1. 1950 založil organizaci IPA. ...
null
Summarize key facts about „Bastipur, Siraha“ clearly and accurately.
**Bastipur, Siraha** Bastipur, Sagarmatha is a village development committee in Siraha District in the Sagarmatha Zone of south-eastern Nepal. At the time of the 2011 Nepal census it had a population of 6361 people living in 1158 individual households. References External links UN map of the municipalities of Siraha D...
null
null
null
null
Vladimír Bejval Vladimír Bejval (31. prosince 1942, Praha – 19. září 2011, Praha) byl český dětský herec. Zahrál si dětskou roli Ivánka ve filmu Bořivoje Zemana Pyšná princezna (1952), roli Frantíka ve filmu Konec strašidel (1952) a roli malého Jirky ve filmu Cesta do pravěku (1953) režiséra Karla Zemana. Údajně kvůli...
What is the value of ``a`` after the following statement?
a = 5 a += 3
a = 8
null
null
null
null
Diana Nemorensis Diana Nemorensis „Diana háje“ či Diana Aricina byla latinská bohyně podobně římské Dianě ctěná v blízkosti města Aricia v háji u jezera po ním pojmenovaném Nemorensis Lacus či Dianino zrcadlo. S tímto místem byl spojen i kult nymfy Egerie a místního božstva Virbia. Podle římské pověsti byl kult Diany ...
Generate a correct Ruby program to print all possible combinations of a given list.
["a", "b", "c"]
def combinations(arr) arr.length.times do |i| arr.length.times do |j| if i != j print arr[i], arr[j] end end end end combinations(['a', 'b', 'c'])
null
Write a code to delete the element at a given index in an array
Example array: [4, 5, 6, 7, 8] Index: 2
let array = [4, 5, 6, 7, 8]; let index = 2; array.splice(index, 1); console.log(array); // Output: [4, 5, 7, 8]
null
Summarize key facts about „Janusz Andrzej Zakrzewski“ clearly and accurately.
**Janusz Andrzej Zakrzewski** Janusz Andrzej Zakrzewski (23 July 1932 in Kraków – 26 October 2008 in Warsaw) was a Polish physicist. He was a professor of the University of Warsaw (since 1971), member of the Warsaw Scientific Society (since 1984), Polish Academy of Sciences (1986), Polish Academy of Learning. He serve...
null
Write a find() method in JavaScript to find an item in an array.
Array: [1, 2, 3, 4, 5], query: 3
let find = (array, query) => { for (let i = 0; i < array.length; i++) { if (array[i] === query) return i; } return -1; }; let index = find([1, 2, 3, 4, 5], 3); console.log(index);
null
Write a Python function to check if a given number is a prime number or not. A prime number is an integer greater than 1 which is not divisible by any other numbers.
11
def is_prime(n): #Check if n islarger than one if n > 1: # Check if n is divisible by any number between2 and n for i in range(2,n): if (n % i) == 0: return False else: return True else: return False
null
Convert the given integer to 8-bit binary.
13
0b00001101
null
Stručně shrň článek o tématu „Hroznová (Praha)“ a uveď hlavní fakta.
**Hroznová (Praha)** Hroznová ulice na Malé Straně v Praze spojuje ulici U Sovových mlýnů a náměstí Na Kampě. Název ulice je odvozen od domu U Zlatého hroznu na čísle 2. Na západní straně vede můstek přes kanál Čertovka na Velkopřevorské náměstí, kde je slavná Lennonova zeď. Je to nejstarší můstek přes kanál zvaný můs...
null
Explain the concept of data normalization.
Data normalization is the process of scaling individual samples to have unit norm or a given absolute sum. Normalization can be applied to data to scale the values of the data to a fixed range, for example 0 to 1, or to standardize the data by removing the mean and scaling to unit variance.
null
Summarize key facts about „Sensory nervous system“ clearly and accurately.
**Sensory nervous system** The sensory nervous system is a part of the nervous system responsible for processing sensory information. A sensory system consists of sensory neurons (including the sensory receptor cells), neural pathways, and parts of the brain involved in sensory perception and interoception. Commonly r...
null
Stručně shrň článek o tématu „Umělec jednoho hitu“ a uveď hlavní fakta.
**Umělec jednoho hitu** Umělec jednoho hitu (anglicky One-hit wonder) je interpret, který v hitparádách „zazáří“ pouze jednou, případně od kterého je známý pouze jediný hit. Hity jsou zpravidla novinky, které si lidé oblíbili díky nějakému kulturnímu trendu. Jedním ze známých případů je hit Diana od Paula Anky nebo Di...
null
null
null
null
Dancesport at the 2009 World Games – Latin The Latin competition in dancesport at the 2009 World Games took place on 25 July 2009 at the Kaohsiung Arena in Kaohsiung, Taiwan. Competition format A total of 24 pairs entered the competition. Best eighteen pairs from round one qualifies to the semifinal. From semifinal th...
Create a Redux reducer to handle a state named "counter" with an initial value of 0.
const initialState = { counter: 0 }; const reducer = (state = initialState, action) => { switch (action.type) { case "INCREMENT": return { ...state, counter: state.counter + 1 }; case "DECREMENT": return { ...state, counter: state.counter - 1 }; default: return state; } }; export default reducer;
null
null
null
null
Dániel Berzsenyi Dániel Berzsenyi (7. května 1776, Egyházashetye – 24. února 1836, Nikla) byl maďarský básník. Život Byl luterán, pocházel ze starého šlechtického rodu. Celý život strávil na svém panství. Žil v Zadunají jako statkář a zároveň byl literárně činný. Ve své tvorbě usiloval o harmonické spojení života a po...
Write a script using Bash that replaces all vowels with a number.
#!/bin/bash string="Hello World!" vowels=("a" "e" "i" "o" "u" "A" "E" "I" "O" "U") for i in "${vowels[@]}" do string="${string//$i/0}" done echo $string #H0ll0 W0rld!
null
How many jokes can you write in Python?
There is no definite answer to this question. It depends on the creativity and programming skills of the individual. It is possible to write an infinite number of jokes, but writing a joke that is funny and unique will require more effort and expertise.
null
Stručně shrň článek o tématu „Dům důstojníků (Skopje)“ a uveď hlavní fakta.
**Dům důstojníků (Skopje)** Dům důstojníků (makedonsky Офицерски дом) stál v letech 1929-1963 v centru Skopje, hlavního města Severní Makedonie. V souvislosti s projektem Skopje 2014 je v současné době obnovován. Dům patřil ve své době k významným objektům makedonské metropole. Zbudován byl na místě středověké mešity,...
null
Summarize key facts about „Pastorius Park“ clearly and accurately.
**Pastorius Park** Pastorius Park is a sixteen-acre (6.5-ha) park that is located in Philadelphia, Pennsylvania, United States. It is maintained by the Fairmount Park Commission. History and notable features Established in 1915, this American park was named in honor of Francis Pastorius, a leader of early German immig...
null
Create a function in C++ that generates a random number between 0 and 1.
#include <stdlib.h> #include <time.h> float genRandomNum(){ srand (time(NULL)); float randomNum = (float)rand()/(float)(RAND_MAX); return randomNum; }
null
Manipulate the given list in Python to include the new element at the beginning.
list = [1, 2, 3] new_element = 0
list = [0] + list list.insert(0, new_element)
null
Stručně shrň článek o tématu „Dhanbád“ a uveď hlavní fakta.
**Dhanbád** Dhanbád () je průmyslové město v Džhárkhandu, jednom ze svazových států Indie. K roku 2011 měl zhruba 1,1 miliónu obyvatel a byl správním střediskem stejnojmenného okresu. Poloha Centrum Dhanbádu leží přibližně deset kilometrů severně od toku Dámódaru, pravého přítoku řeky Huglí v povodí Gangy. V rámci Džh...
null
Translate to English: Prosím o review mého pull requestu.
Please review my pull request.
null
Summarize key facts about „Ken Leblanc (bobsleigh)“ clearly and accurately.
**Ken Leblanc (bobsleigh)** Kenneth Leblanc (born February 13, 1968) is a Canadian bobsledder who competed in the late 1980s and early 1990s. He then returned to bobsleigh in 1997 and competed until the 2002 Winter Olympics in Salt Lake City. Leblanc won a bronze medal in the four-man event at the 1999 FIBT World Cham...
null
null
null
null
Cesta zhýčkaného dítěte Cesta zhýčkaného dítěte (originální francouzský název Itinéraire d'un enfant gâté) je francouzské filmové drama z roku 1988, které režíroval Claude Lelouch podle vlastního scénáře. Film pojednává o řediteli velké společnosti, který, navzdory svému úspěchu, není šťastný. Je unaven ze svého život...
Summarize key facts about „List of American Walker Cup golfers“ clearly and accurately.
**List of American Walker Cup golfers** This is a list of all the American golfers who have played in the Walker Cup through 2021. Jay Sigel holds the record with nine appearances. Players ^ In the final team but did not play in any matches. + Selected for the team but withdrew and was replaced. Allen Doyle was select...
null
Napiš SQL migraci: tabulka todos.
```sql CREATE TABLE todos ( id SERIAL PRIMARY KEY, title TEXT NOT NULL, done BOOLEAN NOT NULL DEFAULT FALSE, created_at TIMESTAMPTZ NOT NULL DEFAULT NOW() ); ```
null
Stručně shrň článek o tématu „Amennacht“ a uveď hlavní fakta.
**Amennacht** Amennacht (v překladu z egyptštiny „Amon je silný“) je staroegyptské jméno, které může označovat: Amennachta – místokrále Núbie v době panovnice Hatšepsuty Amennachta – písaře a kresliče v Dér el-Medíně v době Ramesse III. a Ramesse IV. Amennachta – hrdinu stejnojmenné povídky, kterou napsal na motivy st...
null
Spočítej: 16 + 2 = ?
16 + 2 = 18
null
Use regex to extract specific words between two delimiters in a sentence.
string = "This is a string with multiple words and special characters !@#"
import re string = "This is a string with multiple words and special characters !@#" matches = re.findall(r'(?<= ).*?(?= )', string) print(matches) # Output: ['is', 'a', 'string', 'with', 'multiple', 'words', 'and', 'special']
null
Create a loop that prints all the odd numbers from a given array.
let arr = [1, 2, 3, 4, 5, 6, 7, 8]
for(let i = 0; i < arr.length; i++){ if (arr[i] % 2 !== 0 ){ console.log(arr[i]); } }
null
Summarize key facts about „Ján Gerthofer“ clearly and accurately.
**Ján Gerthofer** Ján Gerthofer (27 May 1910 – 9 August 1991) was the third-highest scoring fighter ace from Slovakia during World War II. He accumulated 26 kills. Gerthofer had joined the Czechoslovak Air Force in 1927 flying bombers. In 1939, he became a pilot in the Air Force of newly independent Slovakia. After co...
null
Create a MySQL query to join two tables, 'customers' and 'orders', and select all the fields from 'orders' table except the field 'order_date'.
SELECT orders.* FROM orders JOIN customers ON orders.customer_id = customers.customer_id WHERE orders.order_date IS NOT NULL;
null
Stručně shrň článek o tématu „Muzeum piva v Praze“ a uveď hlavní fakta.
**Muzeum piva v Praze** Muzeum piva v Praze je soukromé muzeum, které představuje historii i technologii výroby českého piva. Kromě vlastní výroby, kterou znázorňuje model pivovaru, si všímá i sladovnictví, tradičníhio ledařství a pivního sběratelství. Sídlí v centru města a je otevřeno po celý týden a celý rok od 11 ...
null
Write code to print a multiplication table.
def print_multiplication_table(): """Prints a multiplication table.""" # Print the header of the table print(' | '.join(str(i).ljust(4) for i in range(1, 11))) print('-' * 46) # Print the rows of the table for row in range(1, 11): print(' | '.join(str(row * col).ljust(4) for col in range(1, 11))) if __name__ == '__main...
null
Write a MySQL query to select all employees who are 30 years old or above.
SELECT * FROM employees WHERE age >= 30;
null
Create a CSS class for making a font bold.
.bold-font { font-weight: bold; font-style: normal; }
null
Summarize key facts about „Ewen Paul Cameron“ clearly and accurately.
**Ewen Paul Cameron** Sir Ewen Paul Cameron (15 January 1891 – 18 January 1964) was an Australian politician. Background Cameron was born in Preston, Victoria, the son of Martin Cameron, a grazier from Scotland, and his wife Jane. From 1915 to 1918, he served in the 4th Light Horse Regiment of the Australian Army. He ...
null
null
null
null
Greta Johanssonová Anna Teresa Margareta „Greta“ Johanssonová (9. ledna 1895 Stockholm, Švédsko – 28. ledna 1978 San Mateo, Kalifornie, USA) byla švédská reprezentantka ve skocích do vody a plavání. V roce 1912 se na olympijských hrách ve Stockholmu stala vítězkou ve skocích z desetimetrové věže. Na stejných hrách sta...
null
null
null
WISDOM Project The WISDOM Project is a bilateral research project between Germany and Vietnam, focusing on the creation of a Water related Information System for the Mekong Delta. Initiated by the Vietnamese and the German Government it was started in the year 2007, and is planned to continue until the year 2013. Wate...
Stručně shrň článek o tématu „Elros“ a uveď hlavní fakta.
**Elros** Elros (jako númenorský král Tar-Minyatur) byl prvním králem fiktivní země Númenor ve fantasy světě J. R. R. Tolkiena. Jeho otcem byl Eärendil a matkou Elwing. Jelikož byl Půlelf, musel se rozhodnout, jestli chce být člověkem nebo elfem. Rozhodl se být člověkem a od Valar dostal moc nad zemí Númenor a také dl...
null
Stručně shrň článek o tématu „Jednotka sboru dobrovolných hasičů obce Braňany“ a uveď hlavní fakta.
**Jednotka sboru dobrovolných hasičů obce Braňany** Hasiči obce Braňany (Jednotka sboru dobrovolných hasičů obce Braňany) je jednotka požární ochrany zařazená v integrovaném záchranném systému do kategorie JPO III/1 s historií sahající do roku 1886. Jejím zřizovatelem je obec Braňany s přibližně 1 244 obyvateli spadaj...
null
Compile this code in C++.
#include <iostream> int main() { std::cout << "Hello World!"; return 0; }
g++ -o hello_world hello_world.cpp
null
Compute the sum of an array using a JavaScript loop.
array = [7, 2, 5, 9]
let sum = 0; for (let i = 0; i < array.length; i++) { sum += array[i]; } console.log(sum);
null
Stručně shrň článek o tématu „Březina (Zbraslav)“ a uveď hlavní fakta.
**Březina (Zbraslav)** Březina (německy Brzesina) je osada, součást obce Zbraslav v okrese Brno-venkov. Tvoří jednu ze dvou základních sídelních jednotek obce. Historie Osada Březina vznikla ve druhé polovině 18. století podél cesty z Rosic do Velké Bíteše, na návrší nad blízkou Zbraslaví, která se nachází v údolí pot...
null
Merge two sorted arrays.
[1, 2, 4, 5] & [3, 6, 7, 8]
// Merging two sorted arrays int[] a1 = {1, 2, 4, 5}; int[] a2 = {3, 6, 7, 8}; int length1 = a1.length; int length2 = a2.length; int[] mergedArray = new int[length1 + length2]; // indexes for main array int i = 0; int j = 0; int k = 0; while (i < length1 && j < length2) { if (a1[i] < a2[j]) { mergedArray[k] = a1[i]; i+...
null
Write a MySQL query to insert values into a table called 'users' with three columns: 'name', 'email', and 'age'.
name: John, email: john@example.com, age: 28
INSERT INTO users (name, email, age) VALUES ('John', 'john@example.com', 28);
null
Zdravím!
Ahoj! Co potřebuješ vyřešit?
null
Create a regular expression to search for all sentences that start with "I like".
^I like.*
null
Deconstruct this line of Python code and explain what it does
y = [x**2 for x in range(10)]
This line of code is a Python List Comprehension, it will iterate through the range of 0 to 9 and square each of those numbers and add them to a new list 'y'. The list will contain the squares of the numbers 0 to 9, i.e. [0, 1, 4, 9, 16, 25, 36, 49, 64, 81].
null
Create a JSON structure to store the following user data: name, age, and education.
John Doe, 25, Masters
{ "name": "John Doe", "age": 25, "education": "Masters" }
null
Summarize key facts about „Eternal Faith (TV series)“ clearly and accurately.
**Eternal Faith (TV series)** Eternal Faith () is an upcoming Chinese television series adapted from the xianxia novel Heaven Official's Blessing by Mo Xiang Tong Xiu, starring Zhai Xiaowen and Zhang Linghe. Premise After his third ascension to the Heavenly Realm, Xie Lian accidentally destroys some gods' properties. ...
null
Given a comma separated string, write a Python program to convert the string into a list.
my_string = "Hello,World,Hi"
my_list = my_string.split(',') print("List:", my_list)
null
Stručně shrň článek o tématu „Balbínův pramen“ a uveď hlavní fakta.
**Balbínův pramen** Balbínův pramen v Mariánských Lázních je slabě mineralizovaná železnatá kyselka. Zlepšuje prokrvení těla, periferie i vnitřních orgánů. Velmi vhodné i pro kardiovaskulární aparát. Využívá se pro vysoký obsah minerálních solí a huminových kyselin pro minerální koupele. Pro pitnou léčbu se nepoužívá,...
null
Summarize key facts about „Stepan Ghazaryan“ clearly and accurately.
**Stepan Ghazaryan** Stepan Ghazaryan (Armenian: Ստեփան Ղազարյան; born 11 January 1985) is an Armenian footballer who plays goalkeeper for Banants. Ghazaryan has played for the Armenia U-17 in the UEFA European Under-17 Championship. Career International Ghazaryan, represented Artsakh at the 2019 CONIFA European Footb...
null
Summarize key facts about „Huse“ clearly and accurately.
**Huse** Huse is a surname. Notable people with the surname include: Brad Huse (born 1966), American basketball coach Caleb Huse (1831–1905), Confederate States Army officer Camilla Huse (born 1979), Norwegian footballer David A. Huse (born 1958), American theoretical physicist Harry M. P. Huse (1858–1942), United Sta...
null
Stručně shrň článek o tématu „Gogolova (Praha)“ a uveď hlavní fakta.
**Gogolova (Praha)** Gogolova ulice na Hradčanech v Praze spojuje ulice Na baště sv. Tomáše a Badeniho. Nazvána je na počest ruského spisovatele a dramatika Nikolaje Vasiljeviče Gogola (1809 - 1852). Na čísle 1 je novobarokní Kramářova vila podle projektu architekta Friedricha Ohmanna, od roku 1998 oficiální rezidence...
null
Summarize key facts about „Mask shop“ clearly and accurately.
**Mask shop** A mask shop is a factory which manufactures photomasks for use in the semiconductor industry. There are two distinct types found in the trade. Captive mask shops are in-house operations owned by the biggest semiconductor corporations, while merchant mask shops make masks for most of the industry. Merchan...
null
Create a Python script that inputs an integer and prints "odd" if the number is odd, or "even" if the number is even.
def check_even_or_odd(num): if num % 2 == 0: print("even") else: print("odd") check_even_or_odd(5) # odd
null
null
null
null
Domestic robot A domestic robot is a type of service robot, an autonomous robot that is primarily used for household chores, but may also be used for education, entertainment or therapy. While most domestic robots are simplistic, some are connected to Wi-Fi home networks or smart environments and are autonomous to a h...
Summarize key facts about „1888 Liverpool West Derby by-election“ clearly and accurately.
**1888 Liverpool West Derby by-election** The 1888 Liverpool West Derby by-election was held on August 10, 1888 after the resignation of the incumbent Conservative Party MP Claud Hamilton. It was retained by the unopposed Conservative Candidate William Cross. References 1888 elections in the United Kingdom West Derby,...
null
null
null
null
Akademické mistrovství světa v orientačním běhu 1988 6. Akademické mistrovství světa v orientačním běhu proběhlo ve Norsku ve dnech 20. až 22. července 1988. Centrem závodů AMS byl Trondheim. Závodů se zúčastnilo celkem 184 závodníků (99 mužů a 85 žen) z 23 zemí. Program závodů Program mistrovství světa: Závod jednotl...
Vysvětli proměnná?
Proměnná je pojmenované místo pro hodnotu v paměti, např. `x = 10`.
null
Stručně shrň článek o tématu „Římskokatolická farnost Rataje u Bechyně“ a uveď hlavní fakta.
**Římskokatolická farnost Rataje u Bechyně** Římskokatoická farnost Rataje u Bechyně je územním společenstvím římských katolíků v rámci táborského vikariátu Českobudějovické diecéze. O farnosti Historie Plebánie v Ratajích je poprvé písemně doložena v roce 1355, později však zanikla. Ves poté byla přifařena k Bechyni....
null
Ahoj tam?
Ahoj! Jsem tu pro kód, vysvětlení i češtinu.
null
Summarize key facts about „Geographic coordinate conversion“ clearly and accurately.
**Geographic coordinate conversion** In geodesy, conversion among different geographic coordinate systems is made necessary by the different geographic coordinate systems in use across the world and over time. Coordinate conversion is composed of a number of different types of conversion: format change of geographic c...
null
Write a Bash script which will print the value of Shell variable 'USER' followed by User's current working directory.
#!/bin/bash echo "$USER is currently in: " pwd
null
Stručně shrň článek o tématu „Částice“ a uveď hlavní fakta.
**Částice** Částice je velmi malá část hmoty, která se projevuje svými charakteristickými vlastnostmi (energií, hmotností, elektrickým nábojem, spinem, chemickou reaktivností, dobou života, aj.). Studiem částic ve fyzice se zabývá především fyzika částic, která se zaměřuje především na studium elementárních částic a d...
null
Create a function in Node.js that prints out the numbers between 0 and a given limit.
limit = 10
""" Create a function in Node.js that prints out the numbers between 0 and a given limit. """ function printNumbers(limit){ for(let i = 0; i <= limit; i++) { console.log(i); } } printNumbers(10);
null
Ukaž čistý kód: zapíše text do souboru. Pojmenuj funkci `write_text`.
```python def write_text(path: str, text: str) -> None: with open(path, "w", encoding="utf-8") as f: f.write(text) ```
null
Vysvětli pojem GIL česky a stručně.
GIL (Global Interpreter Lock) v CPythonu brání běhu více bytecode vláken najednou v jednom procesu. Pro CPU-bound paralelismus spíš multiprocessing nebo jiný runtime; pro I/O stačí threading/async.
null
Create a function to format a given list of numbers with commas as thousands separators.
def format_numbers(nums): formatted_nums = [] for num in nums: formatted_nums.append("{:,}".format(num)) return formatted_nums
null
Stručně shrň článek o tématu „PowerMac“ a uveď hlavní fakta.
**PowerMac** PowerMac je produktová řada společnosti Apple (dříve Apple Computers) založená na procesorech s architekturou PowerPC. Procesory PowerPC byly společností Apple podporovány od roku 1994 do roku 2006, poté se přešlo na vyspělejší procesory Intel. Od roku 2020 probíhá přechod na vlastní procesory Apple Silic...
null
Create a for loop in Python to print all elements in a given numpy array.
import numpy as np myArray = np.array([1, 2, 3, 4])
for element in myArray: print(element)
null
Summarize key facts about „Maltase“ clearly and accurately.
**Maltase** Maltase (, alpha-glucosidase, glucoinvertase, glucosidosucrase, maltase-glucoamylase, alpha-glucopyranosidase, glucosidoinvertase, alpha-D-glucosidase, alpha-glucoside hydrolase, alpha-1,4-glucosidase, alpha-D-glucoside glucohydrolase) is one type of alpha-glucosidase enzymes located in the brush border of...
null
Write a TensorFlow code snippet to build a convolutional neural network and display the results of the training process.
import tensorflow as tf # define a convolutional neural network model = tf.keras.models.Sequential([ tf.keras.layers.Conv2D(32, (3, 3), activation='relu', input_shape=(28, 28, 1)), tf.keras.layers.MaxPooling2D(2,2), tf.keras.layers.Flatten(), tf.keras.layers.Dense(128, activation='relu'), tf.keras.layers.Dense(10, acti...
null
Compute the mean of all the values in a column of a given dataframe.
Stored in the form of a Pandas dataframe. 0 1 2 a 1 b 4 4 5
3.0
null