instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Create a function in Python which takes a string as an argument and returns the first character of the string in upper case.
def first_upper_char(input_string): if len(input_string) == 0: return '' else: return input_string[0].upper()
null
null
null
null
Letkis Letkis (také Letkiss nebo Letkajenkka) je společenský tanec pocházející z Finska, který se v první polovině šedesátých let rozšířil po celém světě. Lidé při něm stojí za sebou v řadě a drží tanečníka před sebou kolem pasu, synchronizovaně vykopávají nohama do stran a poskakují sounož dopředu a dozadu. Tanec je ...
You need to develop a function which checks if a given string is palindrome or not.
String: "redder"
def is_palindrome(input_string): # Convert string to lower case to ignore capitalization. input_string = input_string.lower() # Reverse input string rev_string = reversed(input_string) # Check if strings are equal or not if (list(input_string) == list(rev_string)): return True else: return False print(is_palindrome("re...
null
Co je bug?
Bug je chyba v programu, kvůli které se chová jinak, než autor chtěl.
null
Construct a class that takes a string and capitalizes the first letter.
class CapitalizedWord: def __init__(self, word): self.word = word def get_capitalized_word(self): return self.word[0].upper() + self.word[1:]
null
Jaké je hlavní město Slovenska?
Bratislava.
null
Summarize key facts about „North East Regional Select Committee“ clearly and accurately.
**North East Regional Select Committee** The North East Regional Select Committee was one of nine regional select committees of the House of Commons in the Parliament of the United Kingdom. The establishment of the committee was agreed by the House of Commons on 12 November 2008, following the appointment of 'regional...
null
null
null
null
Simply Red Simply Red je britská soulová kapela založená v roce 1984 Mickem Hucknallem. Během dvaceti pěti let působení prodala přes 50 milionů nosičů. Skupina vytvořila několik hitů jako It's Only Love (1989), Stars (1991), Fairground (1995) nebo Sunrise (2000). Z převzatých písní pak například Money's Too Tight (To ...
Kolik je 7 - 3?
7 - 3 = 4
null
Summarize key facts about „Kharrat Kola, Simorgh“ clearly and accurately.
**Kharrat Kola, Simorgh** Kharrat Kola (, also Romanized as Kharrāţ Kolā and Kharrāt 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 278, in 72 families. References Populated places in Simorgh County
null
null
null
null
1846 in Denmark Events from the year 1846 in Denmark. Incumbents Monarch – Christian VIII Prime minister – Poul Christian Stemann Events 5 May The Society of the Friends of Peasants is established in Copenhagen. Undated The of Den højere Dannelsesanstalt for Damer, the first secondary education school for women, is es...
Ahoj!
Ahoj! Jak ti můžu pomoct?
null
Generate a for loop in Java for printing integers from 0 to 10.
for (int i = 0; i <= 10; i++) { System.out.println(i); }
null
Create a code to import a module called 'math' in Python.
import math
null
Stručně shrň článek o tématu „Bohuš Beneš“ a uveď hlavní fakta.
**Bohuš Beneš** Bohuš Beneš (11. března 1901 Vršovice (nyní Praha) – 10. března 1977 Oakland, Spojené státy americké) byl československý diplomat, novinář, spisovatel a posléze vysokoškolský pedagog v USA. Životopis Pocházel z rodiny Václava Beneše (1865–1919), učitele na měšťanské škole ve Vršovicích a matky Anny, ro...
null
Rewrite the following instruction to print the binary value it holds.
int n = 12;
System.out.println(Integer.toBinaryString(n));
null
Hello tam?
Ahoj! Co potřebuješ vyřešit?
null
null
null
null
Henry M. Watts Henry Miller Watts (October 10, 1805 – November 30, 1890) was an American lawyer, politician, and diplomat. Early life Watts was born in Carlisle, Pennsylvania, on October 10, 1805. He was the son of lawyer David Watts (1764–1819), who studied law under William Lewis, and Julia Anna (née Miller) Watts (...
Move the parentheses to make the expression give the correct answer.
Expression: 8 / 2 * (2 + 2) Answer: 16
8 / (2 * (2 + 2)) // parentheses moved to form the correct expression which yields the correct answer (16).
null
null
null
null
William Gladstone Steel William Gladstone Steel (September 7, 1854 – October 21, 1934) was an American journalist who was known for campaigning for 17 years for the United States Congress to designate Crater Lake as a National Park. Steel was from Ohio, and worked in the newspaper business before becoming a mail carri...
Stručně shrň článek o tématu „Holubí maso“ a uveď hlavní fakta.
**Holubí maso** Holubí maso je maso pocházející z holuba domácího. Obvykle se zpracovává maso holoubat, které je považováno za pochoutku. Chov holubů pro maso je jejich původním užitkovým směrem. V minulosti byli holubi drženi na selských dvorech a holubník sloužil jako živá spižírna, zásoba masa pro neočekávané příle...
null
Spočítej: 27 + 6 = ?
27 + 6 = 33
null
Generate a random password of length 16 using the letters a-z.
""" Generate a random password of length 16 using the letters a-z """ import random def generate_password(): letters = 'abcdefghijklmnopqrstuvwxyz' return ''.join(random.choice(letters) for i in range(16)) if __name__ == '__main__': print(generate_password())
null
Search for the index of a given element in a given array.
array = [1,2,3,4,5] element = 3
index = array.index(element) print("Index of the element", element, "is", index)
null
Write a script in JavaScript to find the sum of all the numbers in an array.
function arraySum(arr) { let sum = 0; for (let i = 0; i < arr.length; i++) { sum += arr[i]; } return sum; }
null
Stručně shrň článek o tématu „Lukáš Dvořák“ a uveď hlavní fakta.
**Lukáš Dvořák** Lukáš Dvořák (* 1982, Praha) je český fotograf a malíř. Jeho výtvarná díla byla publikována v řadě módních časopisů, včetně Vogue, Harper's Bazaar, Marie Claire, Vanity Fair, Cosmopolitan, Woman, nebo pánských magazínech Playboy a GQ. Život a dílo Narodil se v roce 1982 v Praze. Na počátku své kariéry...
null
Stručně shrň článek o tématu „Pavol Senáši“ a uveď hlavní fakta.
**Pavol Senáši** Pavol Senáši (* 10. září 1941) je bývalý slovenský fotbalový útočník. Hráčská kariéra V československé lize odehrál za Slovan Teplice jedno celé utkání, aniž by skóroval. Ve II. lize hrál za TJ Nové Zámky a Teplice. Z Nových Zámků přestoupil po skončení podzimu 1962. Ligová bilance Odkazy Reference Li...
null
Hey!
Ahoj! Co potřebuješ vyřešit?
null
Čau! tam?
Zdravím! Napiš úkol — rád pomůžu.
null
Napiš v Pythonu clamp value.
```python def clamp(x, lo, hi): return max(lo, min(hi, x)) ```
null
Write an HTML code snippet for creating a search box.
<form action="/search" method="get"> <input name="s" type="text" placeholder="Search..."> <input type="submit" value="Search"> </form>
null
Create a MySQL query to select the names of all the customers who have made a purchase in the past month.
SELECT name FROM customers WHERE purchase_date > NOW()-INTERVAL 1 MONTH;
null
Syntax to declare an array in JavaScript.
const arrayName = [];
null
Stručně shrň článek o tématu „Vila Otto Eislera“ a uveď hlavní fakta.
**Vila Otto Eislera** Vila Otto Eislera je funkcionalistická stavba v Ostravici 456, která se nachází v okrese Frýdek-Místek. Rekreační vila byla v roce 2010 navržena k prohlášení za kulturní památku ČR, vzhledem k stavebním úpravám jak exteriéru tak interiéru vila ztratila svoji původní architektonickou hodnotu a pro...
null
Stručně shrň článek o tématu „Dvojhvězda“ a uveď hlavní fakta.
**Dvojhvězda** Dvojhvězda jsou dvě hvězdy, které jsou na obloze blízko sebe. V zásadě může jít o blízkost dvojího druhu: fyzická dvojhvězda – hvězdy jsou skutečně blízko sebe a obíhají kolem společného těžiště, jeden z případů vícenásobné hvězdy, například Sirius ve Velkém Psu optická dvojhvězda – hvězdy jsou v prosto...
null
null
null
null
Dehalobacter Dehalobacter is a genus in the phylum Bacillota (Bacteria). Etymology The generic name Dehalobacter derives from Latin de, from; halogenum from Swedish, coined by Swedish chemist Baron Jöns Jakob Berzelius (1779–1848) from Greek hals, halos "salt" + gen "to produce", so called because a salt is formed in ...
Generate a query in SQL to find the difference between the maximum and minimum salary from the 'employees' table.
SELECT MAX(salary) - MIN(salary) AS salary_difference FROM employees;
null
Summarize key facts about „Romuva“ clearly and accurately.
**Romuva** Romuva may refer to: Romuva (temple), an ancient worship place in Old Prussia Romuva (religion), a pagan movement in modern Lithuania Lithuanian name for Pravdinsk, town in Kaliningrad Oblast, Russia Romuva, heaven in the philosophical writings of Vydūnas
null
Create a function to add three numbers together
def add_three(n1, n2, n3): return n1 + n2 + n3
null
Stručně shrň článek o tématu „Mistrovství světa v atletice 2009 – Ženy 100 metrů“ a uveď hlavní fakta.
**Mistrovství světa v atletice 2009 – Ženy 100 metrů** Běh na 100 metrů žen na Mistrovství světa v atletice 2009 se uskutečnil 16. a 17. srpna. Ve finálovém běhu zvítězila jamajská sprinterka Shelly-Ann Fraserová časem 10,73 s. Výsledky finálového běhu Externí odkazy výsledky na oficiálním webu MS B00100 Běh na 100 m
null
null
null
null
Denitratisoma Denitratisoma is a genus in the phylum Pseudomonadota (Bacteria). Etymology The name Denitratisoma derives from:Latin pref. de-, away from; Neo-Latin noun nitras -atis, nitrate; Greek neuter gender noun soma (σῶμα), body; Neo-Latin neuter gender noun Denitratisoma, a body that reduces nitrate. Species Th...
Stručně shrň článek o tématu „Encyklopedické heslo“ a uveď hlavní fakta.
**Encyklopedické heslo** Encyklopedické heslo čili encyklopedický článek je základní informační jednotkou encyklopedie. Je to komplex logicky uspořádaných informací vyjadřující určité, typem encyklopedie a významem pojmu limitované kvantum teoretických nebo praktických poznatků o určité objektivní skutečnosti získanýc...
null
Stručně shrň článek o tématu „Merkur (planeta)“ a uveď hlavní fakta.
**Merkur (planeta)** Merkur je Slunci nejbližší a současně i nejmenší planetou sluneční soustavy, dosahuje pouze 140 % velikosti zemského Měsíce a je menší než Jupiterův měsíc Ganymed a Saturnův Titan. Merkur nemá žádný měsíc. Jeho oběžná dráha je ze všech planet nejblíže ke Slunci a jeden oběh trvá pouze 87,969 dne. ...
null
Stručně shrň článek o tématu „Hettie Dyhrenfurth“ a uveď hlavní fakta.
**Hettie Dyhrenfurth** Harriet Pauline „Hettie“ Dyhrenfurth (16. listopadu 1892 – 28. října 1972) byla německá horolezkyně. Život Narodila se ve Vratislavi. V roce 1911 se provdala za horolezce Güntera Dyhrenfurtha, s nímž měla tři děti – jedním z nich byl pozdější horolezec a filmař Norman Dyhrenfurth. V roce 1923 se...
null
Summarize key facts about „Nel Martín“ clearly and accurately.
**Nel Martín** Nel Martin is a Spanish professional vert skater. Nel started skating in 1994 and earned a Bronze medal at the X Games in Los Angeles in 2003 and a Silver medal at the FISE contest in France in 2003. Best Trick Double Backflip, Double Flatspin 540, Fakie 1080 Vert Competitions 2008 Asian X Games, Shangh...
null
What are the differences between a class and an object?
A class is a blueprint or template for objects. It is a definition of the object’s properties, methods and behaviors. An object is an instance of a class, meaning it takes on the properties, methods and behaviors defined by the class. A class can have multiple objects, and each object can have different values for its ...
null
Napiš Python funkci: načte řádky souboru (`read_lines`).
```python def read_lines(path: str) -> list[str]: with open(path, encoding="utf-8") as f: return f.read().splitlines() ```
null
Summarize key facts about „Schübelbach-Buttikon railway station“ clearly and accurately.
**Schübelbach-Buttikon railway station** Schübelbach-Buttikon railway station is a railway station in the Swiss canton of Schwyz and municipality of Schübelbach. The station is located on the Lake Zurich left-bank railway line, owned by the Swiss Federal Railways (SBB). Layout and connections Schübelbach-Buttikon has ...
null
Write a Bash shell script to print the unique elements in the given array.
list=(1 2 3 1 4 2 5)
#!/bin/bash list=(1 2 3 1 4 2 5) unique_list=() for num in ${list[@]}; do if [[ ! ${unique_list[*]} =~ $num ]]; then unique_list+=($num) fi done echo ${unique_list[@]}
null
Write the code for the following sorting algorithm.
Bubble Sort
def bubbleSort(arr): # Traverse through all array elements for i in range(len(arr)): # Last i elements are already in place for j in range(0, len(arr)-i-1): # traverse the array from 0 to n-i-1 # Swap if the element found is greater # than the next element if arr[j] > arr[j+1] : arr[j], arr[j+1] = arr[j+1], arr[j] # Dr...
null
Create an API endpoint in Node.js that would accept a GET request and print out the current date and time.
app.get('/print-date-time', (req, res) => { var newDate = new Date(); var currentDateTime = newDate.toLocaleString(); res.status(200).send(currentDateTime); });
null
Summarize key facts about „C. G. Lane“ clearly and accurately.
**C. G. Lane** Charlton George "CG" Lane (11 June 1836, Kennington, London – 2 November 1892, Little Gaddesden, Hertfordshire) was an English amateur cricketer who played first-class cricket from 1854 to 1867. Lane was a student at Christ Church, Oxford, matriculating in 1855, and graduating B.A. in 1860, M.A. in 1867...
null
null
null
null
Musicarello The musicarello (; plural: musicarelli) is a film subgenre which emerged in Italy and which is characterised by the presence in main roles of young singers, already famous among their peers, and their new record album. In the films there are almost always tender and chaste love stories accompanied by the d...
Python function for: clamp
```python def clamp(x, lo, hi): return max(lo, min(hi, x)) ```
null
Kolik je 24 - 8?
24 - 8 = 16
null
Implement a recursive function to calculate the factorial of a number, given by the user as an argument.
def calculate_factorial(num): if num == 0 or num == 1: return 1 else: return num * calculate_factorial(num-1)
null
Summarize key facts about „Ebba“ clearly and accurately.
**Ebba** Ebba is a feminine given name, the feminine version of Ebbe, which is a diminutive form of the Germanic name Eberhard or Everhard, meaning "strong." Alternately, it may be a form of an Old English name Æbbe, of unknown derivation, which was the name of several early saints. The name was the 10th most popular ...
null
Summarize key facts about „Urim and Thummim“ clearly and accurately.
**Urim and Thummim** In the Hebrew Bible, the Urim ( ʾŪrīm, "lights") and the Thummim ( Tummīm, meaning uncertain, possibly "perfections") are elements of the hoshen, the breastplate worn by the High Priest attached to the ephod. They are connected with cleromancy (with divination by casting lots). Most scholars suspe...
null
Napiš SQL: vyber 1 nejnovějších objednávek z tabulky orders.
```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 1; ```
null
Summarize key facts about „S5 Shanghai–Jiading Expressway“ clearly and accurately.
**S5 Shanghai–Jiading Expressway** The Shanghai–Jiading Expressway, commonly referred to as the Hujia Expressway () and designated S5, is a in the city of Shanghai, China. The expressway connects the Middle Ring Road in Baoshan District with the center of Jiading District. Opened in October 1988, it is the oldest expr...
null
Create a function in Python that takes two parameters and returns the sum of squares of all numbers between them
def sum_of_square_range(a, b): sum = 0 for i in range(a, b+1): sum += i * i return sum
null
Remove the extra spaces from a given string and make the spaces between letters and words consistent.
" The quick brown fox jumps over the lazy dog "
def remove_extra_spaces(s): s = s.strip() words = s.split(" ") result = "" for word in words: if word: result += word + " " return result.strip()
null
null
null
null
Bill Hook William E Hook (May 28, 1925 – May 10, 2010), born in New Rochelle, New York, was a Chess master and the Captain of the British Virgin Islands chess team. Starting in 1968, Hook led the Virgin Islands team, and later the British Virgin Islands team, at numerous Chess Olympiads, mostly playing top board (the ...
Stručně shrň článek o tématu „Otmarov (Přibyslavice)“ a uveď hlavní fakta.
**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í...
null
Compose a program to sort an array of integers using bubble sort.
def bubbleSort(arr): n = len(arr) for i in range(n): for j in range(0, n-i-1): if arr[j] > arr[j+1] : arr[j], arr[j+1] = arr[j+1], arr[j]
null
Define a function to collect unique values from a list of dictionaries based on the "key" field.
list = [{'name': 'Apple', 'price': 100}, {'name': 'Mango', 'price': 90}, {'name': 'Apple', 'price': 200}]
def collect_unique(dic_list, key): unique_values = set() for item in dic_list: val = item.get(key) if val is not None: unique_values.add(val) return list(unique_values)
null
Jaké je dnes datum z tvého pohledu tréninku?
Byl jsem dotrénován 23. července 2026. Aktuální „dnes“ v chatu beru z kontextu uživatele; moje tréninkové razítko je 2026-07-23.
null
Write a Python code to convert the given temperature from Celsius to Fahrenheit.
25
Celsius = 25 Fahrenheit = (Celsius * 9/5) + 32 print('{} degrees Celsius is equal to {} degrees Fahrenheit.'.format(Celsius, Fahrenheit)) # Output: 25 degrees Celsius is equal to 77 degrees Fahrenheit.
null
Summarize key facts about „Waihāhā River“ clearly and accurately.
**Waihāhā River** The Waihāhā River is a river of the Waikato Region of New Zealand's North Island. It flows from its origins in several streams west of Lake Taupō, the most important of which are the Mangatu and Waitaia streams, which have their headwaters in the Hauhungaroa Range. The Waihaha flows into the Western ...
null
Write a piece of code to create a new dictionary with the same keys as an existing dictionary, but with the values multiplied by 2.
mydict = {'a': 1, 'b':2, 'c':3}
mydict_doubled = {} for key, value in mydict.items(): mydict_doubled[key] = value * 2
null
Stručně shrň článek o tématu „Praha“ a uveď hlavní fakta.
**Praha** Praha (v češtině, slovenštině, ukrajinštině a běloruštině; v germánských jazycích Prag; v ostatních slovanských a románských jazycích Praga, anglicky a francouzsky Prague, v ostatních jazycích podle těchto tří variant) je hlavní město a současně největší město Česka, zároveň je 15. největším městem Evropské ...
null
Stručně shrň článek o tématu „Všeobecná krize kapitalismu“ a uveď hlavní fakta.
**Všeobecná krize kapitalismu** Všeobecná krize kapitalismu je podle marxismu proces rozkladu světové kapitalistické soustavy, týkající se ekonomiky, politiky a ideologie. Teorii všeobecné krize kapitalismu vypracoval Lenin v souvislosti se svým učením o imperialismu jako posledním stádiu kapitalismu. Reference Extern...
null
Kolik je 26 - 4?
26 - 4 = 22
null
Write a SQL query to select the top 5 books with the highest book sales.
Table name: book_sales Columns: book_name, book_sales
SELECT book_name, book_sales FROM book_sales ORDER BY book_sales DESC LIMIT 5;
null
Ukaž čistý Python kód: fibonacci iterative.
```python def fib(n: int) -> int: if n < 0: raise ValueError a, b = 0, 1 for _ in range(n): a, b = b, a + b return a ```
null
Write a code to search a word in a given string and get the index position.
word = 'Hello' string = 'Hello World'
""" Write a code to search a word in a given string and get the index position """ def search_word(word, string): return string.find(word) word = 'Hello' string = 'Hello World' print(search_word(word, string)) # print 0
null
Write a code to reverse each element of an array
array = ['apple','dog','cat','mouse','ball']
def reverse_array(array): reversed_array = [] for elem in array: reversed_array.append(elem[::-1]) return reversed_array if __name__ == '__main__': print(reverse_array(array))
null
null
null
null
Kontinent Kontinent (z latinského contineō, -ēre, což znamená držím pohromadě) nebo světadíl je rozsáhlá souvislá pevninská masa na povrchu Země. Definice kontinentu neexistuje. Různé vědní obory, příp. kultury definují kontinent různě. Obecně uznávané charakteristiky kontinentu jsou: z hlediska rozlohy rozsáhlé území...
Stručně shrň článek o tématu „Vesmírný závod“ a uveď hlavní fakta.
**Vesmírný závod** Vesmírný závod (někdy též vesmírné závody) je pojem, který se používá k označení neoficiálního soupeření mezi Sovětským svazem a Spojenými státy o vědecko-technickou převahu v oblasti dobývání a výzkumu kosmického prostoru během studené války. Toto soupeření probíhalo v zásadě od roku 1957 do polovi...
null
Generate a loop to read each word from a given sentence and display them as a list.
Sentence: "Python is a great programming language"
""" Generate a loop to read each word from a given sentence and display them as a list. """ sentence = "Python is a great programming language" words = sentence.split() word_list= [] for word in words: word_list.append(word) print(word_list)
null
Summarize key facts about „Kalak, Sari“ clearly and accurately.
**Kalak, Sari** Kalak (, also Romanized as Kalāk) is a village in Miandorud-e Kuchak Rural District, in the Central District of Sari County, Mazandaran Province, Iran. At the 2006 census, its population was 58, in 18 families. References Populated places in Sari County
null
Summarize key facts about „Doszhan Kartikov“ clearly and accurately.
**Doszhan Kartikov** Doszhan Kartikov (born 24 May 1989) is a Greco-Roman wrestler from Kazakhstan. Kartikov earned a bronze medal at the 2014 Asian Games in Men's Greco-Roman 75 kg. Kartikov earned a bronze medal at the 2015 World Wrestling Championships in Men's Greco-Roman 75 kg. He has also won the Dave Schultz Me...
null
Write a Python program to convert a given list of lists into a single list.
input_list = [[1, 2], [3, 4], [5, 6]]
def flatten_list(list): new_list = [] for sublist in list: for item in sublist: new_list.append(item) return new_list print(flatten_list(input_list))
null
Stručně shrň článek o tématu „Lingvistika“ a uveď hlavní fakta.
**Lingvistika** Lingvistika (dříve psáno linguistika) neboli jazykověda je věda zkoumající přirozený jazyk. Lze ji dělit na obecnou lingvistiku, aplikovanou lingvistiku, gramatiku a na jazykovědy jednotlivých jazyků nebo jejich skupin. Mezi ně patří např. anglická filologie neboli anglistika, dále např. bohemistika, g...
null
Summarize key facts about „The Frontier Trilogy“ clearly and accurately.
**The Frontier Trilogy** The Frontier Trilogy is a 2015 Western triptych of stage plays by Jethro Compton. The trilogy consists of Blood Red Moon, The Clock Strikes Noon and The Rattlesnake's Kiss alongside two additional short stories, San Sebastian and Noche De Sangre which "expand the world of the plays". Plot summ...
null
null
null
null
Nikhar Gaye Gulab Sare Nikhar Gaye Gulab Sare () is a Pakistani television series directed by Asim Ali and written by Nadia Akhtar based on the novel of the same name by Shazia Chaudry. Momina Duraid produced the show. The show was also broadcast in India on Zindagi from 27 May 2015 to 31 August 2015 under the title G...
Generate a SQL query to return all customers in a table that have a `status` of `active`.
Input: Customers Table ┌─────────┬────────┬───────┐ │ cust_id│name │ status│ ├─────────┼────────┴───────┤ │1 │ John │ active│ │2 │ Peter │ inactive│ │3 │ Rachel │ active│ │4 │ David │ active│ └─────────┴────────┴───────┘
SELECT * FROM Customers WHERE status = 'active';
null
Summarize key facts about „Hong Kong Socialist Democratic Party“ clearly and accurately.
**Hong Kong Socialist Democratic Party** The Hong Kong Socialist Democratic Party was a democratic socialist political party in Hong Kong was founded by Sun Pao-kang on 8 August 1964. Overview The party was composed of a group of liberal-minded Chinese who had settled in Hong Kong because of the rise of Communist Part...
null
Čau
Ahoj! Co potřebuješ vyřešit?
null
Stručně shrň článek o tématu „Chromozom Y“ a uveď hlavní fakta.
**Chromozom Y** Chromozom Y je pohlavní chromozom přítomný u mnoha skupin živočichů, včetně člověka (druhým je chromozom X). Na základě chromozomů X a Y je založený jeden z nejčastějších systémů určení pohlaví: buňky s kombinací chromozomů XX představují samice, XY jsou samci. Chromozom X byl pojmenován podle svých un...
null
Given a string and a set of delimiters, write a function in JavaScript to split the string.
string = "Hello, world!" delimiters = [" ", ",", "-", "!"]
function splitStringWithDelimiters (string, delimiters) { let result = []; let s = string; while (s.length > 0) { let char = s[0]; if (delimiters.includes(char)) { s = s.substr(1); } else { let index = 0; for (const delimiter of delimiters) { if (s.indexOf(delimiter) > 0 && s.indexOf(delimiter) < index) { index = s.ind...
null
Write an HTML code to create a navigation bar with 3 links.
<nav> <ul> <li><a href="#">Link 1</a></li> <li><a href="#">Link 2</a></li> <li><a href="#">Link 3</a></li> </ul> </nav>
null
Compute the sum of all the elements in an array of integers in Java.
int[] arr = {1,2,3,4,5};
int sum = 0; for (int i=0; i<arr.length; i++) { sum += arr[i]; } System.out.println(sum);
null
Stručně shrň článek o tématu „Jimmy Jam a Terry Lewis“ a uveď hlavní fakta.
**Jimmy Jam a Terry Lewis** James Samuel „Jimmy Jam“ Harris III (* 6. června 1959 Minneapolis, Minnesota) a Terry Steven Lewis (* 24. listopadu 1956 Omaha, Nebraska) jsou tým amerických R&B a popových skladatelů a hudebních producentů. Tento tým již od dob osmdesátých let zažívá velký úspěch, v současnosti s Janet Jac...
null
null
null
null
Tony Gardiner Tony Gardiner (born 1947) is a British mathematician who until 2012 held the position of Reader in Mathematics and Mathematics Education at the University of Birmingham. He was responsible for the foundation of the United Kingdom Mathematics Trust in 1996, one of the UK's largest mathematics enrichment p...
null
null
null
Neita victoriae Neita victoriae is a butterfly in the family Nymphalidae. It is found in Tanzania (the southern shores of Lake Victoria) and south-western Kenya. The habitat consists of Brachystegia woodland. References Satyrini Butterflies described in 1899 Butterflies of Africa Taxa named by Per Olof Christopher Aur...
Summarize key facts about „Great Soviet Encyclopedia“ clearly and accurately.
**Great Soviet Encyclopedia** The Great Soviet Encyclopedia (GSE; , BSE) is the largest Soviet Russian-language encyclopedia, published in the Soviet Union from 1926 to 1990. After 2002, the encyclopedia's data was partially included into the later (or Great Russian Encyclopedia) in an updated and revised form. The GS...
null
Summarize key facts about „Burmeister's porpoise“ clearly and accurately.
**Burmeister's porpoise** Burmeister's porpoise (Phocoena spinipinnis) is a species of porpoise endemic to the coast of South America. It was first described by Hermann Burmeister, for whom the species is named, in 1865. Population and distribution While Burmeister's porpoise seems to be relatively common in its range...
null
Vysvětli pojem mutability česky a stručně.
Mutabilita znamená, že objekt lze změnit po vytvoření (list, dict). Immutable typy (tuple, str, int) po vytvoření neměníš — operace vrací novou hodnotu.
null
Write a SQL query to find out how many employees work in a department with a certain id.
SELECT COUNT(*) FROM employees WHERE department_id = <id>;
null