instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Summarize key facts about „Yoo Young-ho“ clearly and accurately.
**Yoo Young-ho** Yoo Young-ho (, born 1965) is a South Korean sculptor. Career He graduated in 1991 from the College of Fine Arts, Seoul National University. Later he studied at the Kunstakademie Düsseldorf in Germany. One of his sculptures is located in Seoul's Digital City subsection. It is known as Square-M Communi...
null
Stručně shrň článek o tématu „Evangelický kostel (Horní Blatná)“ a uveď hlavní fakta.
**Evangelický kostel (Horní Blatná)** Evangelický kostel v Horní Blatné v karlovarském okrese byl postaven na přelomu 19. a 20. století. Nachází se severovýchodně od Náměstí Sv. Vavřince s katolickým kostelem zasvěceným stejnému světci. Kostel je opuštěný a chátrá. Historie V městečku Horní Blatná původně převažovali ...
null
Create a Python dictionary with the key-value: "Alice": 28
example_dict = {'Alice': 28}
null
Produce a small program which prints the number 42 when run.
#include <iostream> int main() { std::cout << 42 << std::endl; return 0; }
null
Kolik je 6 × 2?
6 × 2 = 12
null
null
null
null
Boy George Boy George se narodil jako George Allan O'Dowd (* 14. června 1961, Londýn, Spojené království). Boy George je britský zpěvák-skladatel, který je člen New romantic kapely Culture Club a vůbec new romantic vlny obecně. Proslavil se svým androgynním a silně excentrickým vzhledem. Do jeho repertoáru patří bílý ...
Determine what header is needed for the following function.
def split_list(a_list): mid_point = int(len(a_list) / 2) first_half = a_list[:mid_point] second_half = a_list[mid_point:] return first_half, second_half
import math def split_list(a_list): mid_point = int(math.floor(len(a_list) / 2)) first_half = a_list[:mid_point] second_half = a_list[mid_point:] return first_half, second_half
null
Write a Java program to read the following text and count the number of words in the given sentence.
This is a sample sentence.
import java.util.*; public class CountWords { public static void main(String[] args) { String str = "This is a sample sentence."; int wordCount = 0; for (int i = 0; i < str.length(); i++) { if ((str.charAt(i) == ' ') || (str.charAt(i) == '.')) { wordCount++; } } System.out.println("The number of words in the given sent...
null
Write your own version of Fisher-Yates algorithm for shuffling an array.
def shuffle(arr): for i in range(len(arr)-1, 0, -1): j = random.randint(0, i) arr[i], arr[j] = arr[j], arr[i] return arr
null
Stručně shrň článek o tématu „Okyselování oceánů“ a uveď hlavní fakta.
**Okyselování oceánů** Okyselování oceánů je proces, který zvyšuje kyselost vody v zemských oceánech. Jedná se o pokračující pokles pH oceánů způsobený rozpouštěním přebytku oxidu uhličitého (CO2) z atmosféry. Hlavní příčinou okyselování oceánů je spalování fosilních paliv. Mořská voda má v současnosti mírně zásaditý ...
null
Create a loop in Python to multiply each element of a list with 10.
lst = [1, 2, 3, 4, 5]
def multiply_list(lst): for i in range(len(lst)): lst[i] *= 10 return lst
null
Create a SQL query to select all the records from the table ‘fruit_list’ that have an expiry date falling within the next 10 days.
SELECT * FROM fruit_list WHERE expiry_date >= CURRENT_DATE AND expiry_date < CURRENT_DATE + INTERVAL 10 DAY;
null
Write a function to remove duplicate items in a list.
mylist = [2, 3, 3, 4, 5, 6, 4, 7]
def remove_duplicates(mylist): return set(mylist)
null
Ahoj tam?
Ahoj! Jak ti můžu pomoct?
null
Write an SQL query to select the gender, age and count of people from the people table for people aged 20-30.
SELECT gender, age, COUNT(*) FROM people WHERE age BETWEEN 20 AND 30 GROUP BY gender, age;
null
Summarize the given code
def sumOfTwo(a, b): """Returns the sum of two integers.""" c = a + b return c
This function takes two integers as input and returns their sum.
null
Kolik je 8 × 6?
8 × 6 = 48
null
Write a function for removing duplicates from a given list
list = [1, 2, 3, 3, 4, 2]
def removeDuplicates(list): # create a new set with unique elements from list unique_set = set(list) # convert set back to list unique_list = list(unique_set) return unique_list
null
Write a Node.js code to get a list of the most starred Node.js repositories on github in the last month.
const axios = require('axios'); axios.get('https://api.github.com/search/repositories?q=language:javascript&sort=stars&order=desc&per_page=100') .then(function (response) { let repos = response.data.items.filter(repo => repo.language === 'JavaScript' && new Date(repo.created_at).getTime() > Date.now() - 30*24*60*60*100...
null
Print the elements in the array backwards.
arr=[1,2,3,4,5]
let arr = [1,2,3,4,5]; arr.reverse(); console.log(arr);
null
Write a query statement to select the name, age and address of the oldest person in our database?
SELECT name, age, address FROM TableName ORDER BY age DESC LIMIT 1;
null
Summarize key facts about „Black Beauty“ clearly and accurately.
**Black Beauty** Black Beauty: His Grooms and Companions, the Autobiography of a Horse is an 1877 novel by English author Anna Sewell. It was composed in the last years of her life, during which she was bedridden and seriously ill. The novel became an immediate best-seller, with Sewell dying just five months after its...
null
Define a python function that returns an array of the numbers from 0 to n
def create_array(n): # create an empty list mylist=[] # add elements to the list by looping n times for i in range(0, n + 1): mylist.append(i) # return the list return mylist
null
Stručně shrň článek o tématu „Archimédův zákon“ a uveď hlavní fakta.
**Archimédův zákon** Archimédův zákon je fyzikální poučka z hydrostatiky, která říká: Těleso ponořené do tekutiny, které je v klidu, je nadlehčováno silou rovnající se tíze tekutiny stejného objemu, jako je ponořená část tělesa. Archimédův zákon platí pro kapaliny i pro plyny. Je to zákon statiky, platí pro tekutiny v...
null
Stručně shrň článek o tématu „Žulebino (stanice metra v Moskvě)“ a uveď hlavní fakta.
**Žulebino (stanice metra v Moskvě)** Žulebino () je stanice moskevského metra na Tagansko-Krasnopresněnské lince. Stanice byla zprovozněna spolu s celým úsekem Vychino - Žulebino. Nachází se mezi stanicemi Lermontovskij prospekt a Kotělniki, do 21. září 2015 byla konečnou stanicí linky. Je pojmenována po přilehlém mi...
null
Summarize key facts about „Virgen de los Remedios de Pampanga“ clearly and accurately.
**Virgen de los Remedios de Pampanga** La Virgen de los Remedios de Pampanga also known as Indu ning Capaldanan, Tula ding Kapampangan is a Marian title of the Blessed Virgin Mary venerated by Capampangan Catholics as the official patroness of Pampanga, Philippines. The devotion is paired with a crucified image of Chr...
null
Describe how dynamic programming works in programming.
Dynamic Programming is a technique for solving complex programming problems by breaking them down into a collection of subproblems. It allows optimal solutions to be efficiently computed by breaking a single problem into subproblems and combining their solutions. Dynamic Programming is used for both optimization and se...
null
null
null
null
Loweina Loweina is a small genus of lanternfishes. Species There are currently three recognized species in this genus: Loweina interrupta (Tåning, 1928) Loweina rara (Lütken, 1892) (Laura's lantern fish) Loweina terminata Becker, 1964 References Myctophidae Marine fish genera Taxa named by Henry Weed Fowler
Create a regular expression pattern to detect valid 4-digit numeric codes
^\d{4}$
null
null
null
null
Seznam ředitelů Bezpečnostní informační služby Toto je seznam ředitelů Bezpečnostní informační služby. Bezpečnostní informační služba (BIS) vznikla dne 30. července 1994, její předchůdkyní byla Bezpečnostní informační služba České republiky (BIS ČR), která byla zřízena 24. listopadu 1992. Bezpečnostní informační služb...
Vysvětli branch?
Branch je větev historie — oddělená linka vývoje, kterou pak sloučíš do main.
null
Summarize key facts about „1992–93 Highland Football League“ clearly and accurately.
**1992–93 Highland Football League** The 1992–1993 Highland Football League was won by Elgin City, who were later stripped of the title after requesting a game be brought forward, resulting in two players —who would have been ineligible— being allowed to play. Therefore, the title was declared void. Table Highland Foo...
null
What is the purpose of a pivot table in Excel?
The purpose of a pivot table in Excel is to summarize and analyze data. It can quickly summarize large amounts of data and create useful summaries with a few clicks. Pivot tables are useful for quickly analyzing data in different ways, such as sorting and filtering, and deriving meaningful insights.
null
Implement a function in Java that finds the average of two given integers.
public static int averageOfTwoIntegers(int a, int b) { return (a + b) / 2; }
null
Jsi expert na všechno?
Ne. Jsem silný v češtině, angličtině a v Python / JavaScript / HTML / PHP. U ostatního řeknu, že to nevím, místo aby se to tvářilo jako jistota.
null
null
null
null
Těleso Těleso je, ve fyzice či mechanice, obecný hmotný živý či neživý předmět, který je objektem zkoumání fyziky, resp. mechaniky. Vyplňuje daným způsobem určitou část objemu prostoru, která je nějakým způsobem ohraničena a která obsahuje látku daného skupenství. Těleso má na rozdíl od látky tvar, rozměry, velikost a...
Kolik je 24 × 4?
24 × 4 = 96
null
Create an object that holds 3 attributes, each with its own value.
class MyObject: def __init__(self, attr1, attr2, attr3): self.attr1 = attr1 self.attr2 = attr2 self.attr3 = attr3 obj = MyObject('value1', 'value2', 'value3')
null
Summarize key facts about „Waihī River“ clearly and accurately.
**Waihī River** The Waihī River is a river of the south Canterbury region of New Zealand's South Island. It flows southeast from its sources in the Four Peaks Range, flowing through the town of Geraldine to reach the Ōpihi River close to Temuka. See also List of rivers of New Zealand References Rivers of Canterbury, N...
null
Find the length of a given string using JavaScript.
str = "I'm a GPT model"
let str = "I'm a GPT model"; let length = str.length; console.log(length); // 16
null
Co je Git?
Git je systém pro správu verzí kódu. Ukládá historii změn, větve a umožňuje spolupráci (commit, push, pull, merge).
null
Stručně shrň článek o tématu „Tlumočení“ a uveď hlavní fakta.
**Tlumočení** Tlumočení je převod sdělení z jednoho jazyka do druhého při projevu (přednášce) nebo při rozhovoru. Tlumočník rovněž často tlumočí nejen mezi jazyky, ale i kulturami a může klientům pomáhat v orientaci v cizím prostředí. Rozdělujeme dva základní druhy tlumočení: simultánní a konsekutivní. Simultánní tlum...
null
Stručně shrň článek o tématu „Libavka hrotitá“ a uveď hlavní fakta.
**Libavka hrotitá** Libavka hrotitá (Gaultheria mucronata) je druh rostlin z čeledě vřesovcovité (Ericaceae), je původní v jižní Chile. Plody jsou červené nebo bílé bobule. Běžně je nazývána chaura. I když plody jsou jedlé, jsou bez chuti. V Severní Americe jsou mrazuvzdorné rostliny často pěstovány jako okrasné rostl...
null
Kolik je 17 - 3?
17 - 3 = 14
null
Stručně shrň článek o tématu „Dějiny koncernu Baťa“ a uveď hlavní fakta.
**Dějiny koncernu Baťa** Dějiny koncernu Baťa se oficiálně započaly dne 21. září 1894, když bylo na jméno Antonína Bati úřady vydáno příslušné živnostenské povolení. V květnu 1931 se z dosavadní veřejné obchodní společnosti stala akciová společnost, jediným akcionářem byl Tomáš Baťa a po jeho tragické smrti v červenci...
null
Stručně shrň článek o tématu „AEGON Classic 2013“ a uveď hlavní fakta.
**AEGON Classic 2013** AEGON Classic 2013 byl tenisový turnaj pořádaný jako součást ženského okruhu WTA Tour, který se hrál na otevřených travnatých dvorcích v Edgbaston Priory Clubu. Koná se mezi 9. až 16. červnem 2013 ve anglickém Birminghamu jako 32. ročník turnaje. Turnaj s rozpočtem 235 000 dolarů patřil do kateg...
null
Summarize key facts about „Rooney River“ clearly and accurately.
**Rooney River** The Rooney River is a river in southern Fiordland, New Zealand. It rises in the Kaherekoau Mountains and flows southward into Lake Hauroko. See also List of rivers of New Zealand References Rivers of Fiordland
null
Parse and save the following article in a dataset.
"The Boston Celtics have signed forward Gordon Hayward to a four-year deal. Good move from the Celtics, who are coming off of a teams worst record since 2007? The 29-year-old Hayward has averaged 10.7 points and 5 rebounds per game in his eight-year career"
{ "team": "Boston Celtics", "player": "Gordon Hayward", "contract": "Four-year deal", "recent_record": "teams worst record since 2007", "average_points": 10.7, "average_rebounds": 5 }
null
Summarize key facts about „The Incredible True Story“ clearly and accurately.
**The Incredible True Story** The Incredible True Story is the second studio album by American rapper Logic. It was released on November 13, 2015, by Visionary Music Group and Def Jam Recordings. The album features production by Logic, executive producer 6ix, Stefan Ponce, Sir Dylan, Syk Sense, Oz, and DJ Dahi. The al...
null
null
null
null
Lubor Tokoš Lubor Tokoš (7. února 1923 Šternberk – 29. září 2003 Zlín) byl český herec, spolupracoval i s rozhlasem. Byl také malířem a spisovatelem. V povědomí diváků zůstává především díky svým filmovým rolím dědečků s charakteristickým hlasem. V mládí vytvořil například hlavní roli Simona Harta ve filmu Vynález zká...
Output the 3 world most populous cities
The world's three most populous cities are Tokyo (37.4 million), Delhi (29.8 million) and Shanghai (26.3 million).
null
Summarize key facts about „Empress of India Medal“ clearly and accurately.
**Empress of India Medal** The Empress of India Medal, also referred to as KIH Medal, was a commemorative medal awarded to mark the occasion of the proclamation of Queen Victoria as Empress of India in 1877. It was the first wearable medal issued to mark a commemorative occasion within the British Empire. The medal wa...
null
Summarize key facts about „United States House Select Committee on Assassinations“ clearly and accurately.
**United States House Select Committee on Assassinations** The United States House of Representatives Select Committee on Assassinations (HSCA) was established in 1976 to investigate the assassinations of John F. Kennedy and Martin Luther King, Jr. in 1963 and 1968, respectively. The HSCA completed its investigation i...
null
null
null
null
Lighthouse Christian College The Lighthouse Christian College is a private, non-denominational Christian co-educational early learning primary and secondary day school located in the Melbourne suburb of Keysborough, Victoria, Australia, The College has established a sister school, located in East Cranbourne. See also ...
Stručně shrň článek o tématu „Půdice (krajka)“ a uveď hlavní fakta.
**Půdice (krajka)** Půdice (angl.: point ground, něm.: Netzgrund) je plocha z jednoduchých paličkovacích vazeb, které tvoří podklad, půdu mezi složitějšími vazebními efekty a výplní. Půdice se paličkují nejméně ze dvou párů nití, paličkování na půdici probíhá v diagonálním směru. K základním půdicovým vazbám se počítá...
null
Spočítej 17×10
17 × 10 = 170
null
Create a Python function that takes an array of strings and returns a dictionary whose keys are the strings and the values are the lengths of the strings.
arr = ["apple", "banana", "cherry"]
def array_lengths_to_dict(arr): my_dict = {} for s in arr: my_dict[s] = len(s) return my_dict arr = ["apple", "banana", "cherry"] print(array_lengths_to_dict(arr))
null
Edit the following line of code from C++ to include the use of the precedence operator
a + b * c;
a + (b * c);
null
Stručně shrň článek o tématu „OnePlus“ a uveď hlavní fakta.
**OnePlus** OnePlus Technology (Shenzhen) Co., Ltd. () je čínský výrobce mobilních telefonů a k nim přidruženého operačního softwaru Oxygen OS a Hydrogen OS založeného na operačním systému Android. Od verze Androidu 12 probíhá slučování systémové nástavby s nástavbou mateřské firmy Oppo, která má systém s názvem Color...
null
Summarize key facts about „Tomol, Mazandaran“ clearly and accurately.
**Tomol, Mazandaran** Tomol (; also known as Tomon) is a village in Eshkevar Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 245, in 72 families. References Populated places in Ramsar County
null
Write a Python code to print the multiplication table upto 10.
for i in range(1, 11): for j in range(1, 11): print(i*j, end=" ") print()
null
Kolik je 19 - 11?
19 - 11 = 8
null
null
null
null
Patrick Rooney Jr. Patrick Rooney Jr. (born February 9, 1964) is a former Republican member of the Florida House of Representatives, representing the 85th District, which includes northern Palm Beach County, from 2012 to 2016. Rooney previously represented the 83rd District from 2010 to 2012. History Rooney was born i...
Train a model in PyTorch to classify the following dataset into 4 classes.
import torch # Load the dataset train_data, valid_data, test_data = torch.utils.data.random_split(dataset, (1000, 400, 200)) # Build the model model = torch.nn.Sequential( torch.nn.Linear(7, 15), torch.nn.ReLU(), torch.nn.Linear(15, 4), torch.nn.Softmax() ) # Compile the model criterion = torch.nn.CrossEntropyLoss() op...
null
Write a code to calculate the maximum, minimum, and average of five numbers.
number_list = [2, 4, 6, 8, 10]
def get_max_min_avg(number_list): max_num = max(number_list) min_num = min(number_list) average = sum(number_list) / len(number_list) return (max_num, min_num, average) max_num, min_num, average = get_max_min_avg(number_list) print("Maximum number is:", max_num) print("Minimum number is:", min_num) print("Average of th...
null
Write a function that, given a string, returns a dictionary of all the characters in the string and their respective frequencies.
text = "Hello World"
def letter_frequency(text): d = {} for char in text: if char not in d: d[char] = 1 else: d[char] += 1 return d print(letter_frequency(text))
null
Create an HTML form with 3 input boxes to get user name, email, and phone number.
<form action="" method="post"> <div> <label>Name:</label> <input type="text" name="name" /> </div> <div> <label>Email:</label> <input type="email" name="email" /> </div> <div> <label>Phone Number:</label> <input type="text" name="phone" /> </div> <div> <button type="submit">Submit</button> </div> </form>
null
Summarize key facts about „Jacques Marcus Prevost“ clearly and accurately.
**Jacques Marcus Prevost** James Marcus or Mark Prevost (born Jacques-Marc Prevost; 1736 – 1781) was a British Army officer. After being commissioned in Europe, he commanded troops of the British Army in North America and the West Indies, including during the French and Indian War, the North American front of the Seve...
null
Jak vytvořím virtuální prostředí v Pythonu?
```bash python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install -r requirements.txt ```
null
Write a query to list the names and total order amount of customers who have purchased any item from the Items table.
SELECT customers.name, SUM(items.price * orders.quantity) AS total FROM customers INNER JOIN orders ON customers.id = orders.customer_id INNER JOIN items ON orders.item_id = items.id GROUP BY customers.name
null
Stručně shrň článek o tématu „Světový pohár v běhu na lyžích 1988/1989“ a uveď hlavní fakta.
**Světový pohár v běhu na lyžích 1988/1989** Světový pohár v běhu na lyžích 1988/89 byl osmým ročníkem Světového poháru v běhu na lyžích pod záštitou Mezinárodní lyžařské federace (FIS). Muži i ženy odjeli celkem 12 individuálních závodů a 4 štafety. Celkovými vítězi se stali Švéd Gunde Svan a Ruska Jelena Välbeová. V...
null
Stručně shrň článek o tématu „Dehtáře (Žabovřesky)“ a uveď hlavní fakta.
**Dehtáře (Žabovřesky)** Ves Dehtáře () se nachází v okrese České Budějovice, kraj Jihočeský, zhruba 14 km ZSZ od Českých Budějovic a představuje jednu ze dvou částí obce Žabovřesky. Historie První písemná zmínka o vesnici pochází z roku 1334. Archeologické nálezy však dokládají neolitické sídliště z 5. tisíciletí pře...
null
Spočítej: 13 + 11 = ?
13 + 11 = 24
null
Summarize key facts about „James Joy Mohan Nichols Roy“ clearly and accurately.
**James Joy Mohan Nichols Roy** James Joy Mohan Nichols Roy (or J.J.M. Nichols Roy; 12 June 1884 – 1 November 1959) was a Christian minister and politician from what is now the state of Meghalaya, India. Before the independence of India he agitated for autonomy of the tribal peoples of northeast India. After independe...
null
null
null
null
Recapturetheglory Recapturetheglory (foaled February 11, 2005) is an American Thoroughbred racehorse. Recapturetheglory is a bay horse bred by Charles Jacobi. He was sired by the Breeders' Cup Sprint winner Cherokee Run is out of the mare Cold Awakening, by Dehere. Recapturetheglory is owned by Louisianans Louie Rouss...
Jak propojit HTML form s PHP?
Ve formuláři `method="post" action="save.php"`. V `save.php` čti `$_POST`, validuj, ulož (PDO), vrať HTML nebo redirect. Nikdy nedůvěřuj vstupu — escapuj výstup (`htmlspecialchars`).
null
Given a Dataframe, select the two columns as specified and store into a new separate Dataframe.
import pandas as pd data = {'Name':['Tom', 'nick', 'krish', 'jack'], 'Age':[20, 21, 19, 18] } df = pd.DataFrame(data) cols = ['Name', 'Age']
import pandas as pd data = {'Name':['Tom', 'nick', 'krish', 'jack'], 'Age':[20, 21, 19, 18] } df = pd.DataFrame(data) cols = ['Name', 'Age'] # Creating new Dataframe df_new = df[cols] print(df_new)
null
Create a program in Java to print a multiplication table of size 5x5.
for (int i = 1; i <= 5; i++) { System.out.printf("%d * %d = %d\n", i, i, i * i); for (int j = 1; j <= 5; j++) { System.out.printf("%d * %d = %d\n", i, j, i * j); } System.out.println(); }
null
Write a function to produce a copy of an array
[1, 2, 3, 4]
def copy_array(arr): new_arr = list(arr) return new_arr
null
Create a dictionary which contains the product of keys and their individual values from another dictionary.
d = {'X': 4, 'Y': 5}
d = {'X': 4, 'Y': 5} d2 = {k:v*v for k,v in d.items()}
null
null
null
null
AEGON Championships 2013 – mužská dvouhra Do turnaje mužské dvouhry na tenisovém turnaji AEGON Championships 2013 nastoupilo celkem padesát šest hráčů. Obhájcem titulu z minulého ročníku AEGON Championships byl chorvatský tenista Marin Čilić. Vítězem se stal první nasazený britský tenista Andy Murray, který ve finále ...
Summarize key facts about „Nazad u veliki prljavi grad“ clearly and accurately.
**Nazad u veliki prljavi grad** "Nazad u veliki prljavi grad" (trans. "Back to the Big Dirty City") is a single from influential Serbian and former Yugoslav rock band Riblja Čorba. B-side features an uncensored version of song "Mirno spavaj" (trans. "Sleep Peacefully"). Track listing "Nazad u veliki prljavi grad" - 3:...
null
Find the longest palindromic substring of this string.
string = "carrace"
def longest_palindrome_substring(string): n = len(string) t = [[False for _ in range(n)] for _ in range(n)] max_length = 1 i = 0 while (i < n): t[i][i] = True i = i + 1 start = 0 i = 0 while i < n - 1: if (string[i] == string[i + 1]): t[i][i + 1] = True start = i max_length = 2 i = i + 1 k = 3 while k <= n: i = 0 while...
null
Summarize key facts about „Crypto (book)“ clearly and accurately.
**Crypto (book)** Crypto: How the Code Rebels Beat the Government Saving Privacy in the Digital Age is a book about cryptography written by Steven Levy, published in 2001. Levy details the emergence of public key cryptography, digital signatures and the struggle between the National Security Agency (NSA) and the "cyph...
null
Summarize key facts about „Danny Reynolds (baseball)“ clearly and accurately.
**Danny Reynolds (baseball)** Daniel Vance Reynolds (November 26, 1919 – February 18, 2007) was a shortstop/second baseman in Major League Baseball who played for the Chicago White Sox during the 1945 season. Listed at , 158 lb., Reynolds batted and threw right-handed. He was born in Stony Point, North Carolina. Reyno...
null
Stručně shrň článek o tématu „Pool Live Tour“ a uveď hlavní fakta.
**Pool Live Tour** Pool Live Tour je česká videohra z roku 2011. Vytvořilo ji studio Geewa. Původně byla hra určená pro Facebook, ale později vznikla i verze pro mobilní zařízení. Hra měla na Facebooku velký úspěch. V roce 2013 ji hrálo přes 10 miliónů lidí. Jedná se o kulečníkový simulátor. Hratelnost Hráč v ní sází ...
null
Construct a Java class to execute a binary search.
public class BinarySearch { }
public class BinarySearch { int binarySearch(int arr[], int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; if (arr[mid] == x) return mid; if (arr[mid] > x) return binarySearch(arr, l, mid - 1, x); return binarySearch(arr, mid + 1, r, x); } return -1; } }
null
Write a JavaScript to create a new array containing the squared values of all odd numbers in the range (1, 10)?
let newArray = []; for (let i=1; i<=10; i++) { if (i % 2 !== 0) { newArray.push(i * i); } }
null
null
null
null
Havells Havells India Limited is an Indian multinational electrical equipment company, based in Noida. It was founded by Haveli Ram Gandhi, later sold to Qimat Rai Gupta who was his distributor. The company manufactures home appliances, lighting for domestic, commercial and industrial applications, LED lighting, fans,...
null
null
null
Úhlové zrychlení Úhlové zrychlení je fyzikální veličina, která vyjadřuje změnu úhlové rychlosti za jednotku času při pohybu po kružnici. Úhlové zrychlení lze interpretovat jako zrychlení tělesa, které se pohybuje po kruhové dráze o jednotkovém poloměru. Značení Doporučenou značkou veličiny je ε, případně se též užívá ...
null
null
null
Ogilvie Ridge, Edmonton Ogilvie Ridge is a residential neighbourhood in south west Edmonton, Alberta, Canada overlooking the Whitemud Creek ravine. It is bounded by the ravine to the east and north. On the west the neighbourhood is bounded by Rabbit Hill Road and on the south by a utility corridor located just north o...
Write an expression in Java to calculate the exponential value of a number.
Math.exp(x)
null
Summarize key facts about „Fiskartorpet“ clearly and accurately.
**Fiskartorpet** Fiskartorpet is a recreational area north of Stockholm, Sweden. It is situated in the Djurgården area. It features a small hotel, a small conference center, and a number of restaurants. Sporting facilities include an ice hockey rink, a soccer field, and a K-47 ski jump. History King Charles XI of Swed...
null
Edit the code to create a try-except block to handle the exception.
a = 5 b = 0 ans = a/b
try: a = 5 b = 0 ans = a/b except ZeroDivisionError: print("Cannot divide by zero.")
null
Ukaž čistý kód: prohodí klíče a hodnoty (unikátní). Pojmenuj funkci `invert_dict`.
```python def invert_dict(d: dict) -> dict: return {v: k for k, v in d.items()} ```
null
null
null
null
Rovnovážná poloha Rovnovážná poloha je poloha tuhého tělesa, při níž je výslednice všech sil působících na těleso nulová a výsledný moment všech sil je také nulový. Rovnovážná poloha je poloha, která je výsledkem rovnováhy sil. Typy rovnovážných poloh Stálá rovnovážná poloha Stálá rovnovážná poloha (též stabilní rovno...
Create a program in Python that takes two strings as input and determines if they are anagrams of each other
string1="listen"; string2="silent";
def isAnagram(str1, str2): # convert both strings into lowercase str1 = str1.lower() str2 = str2.lower() # sort both strings sortedStr1 = ''.join(sorted(str1)) sortedStr2 = ''.join(sorted(str2)) # check if sorted strings are equal if sortedStr1 == sortedStr2: return True else: return False result = isAnagram(string1, s...
null
null
null
null
Level 42 Level 42 je britská pop rocková a jazz-funková kapela, která skórovala v britských žebříčcích na přelomu osmdesátých a devadesátých let. Skupina se skládá z Marka Kinga (slapping baskytara) klávesisty Mike Lindupa, Garyho Husbanda, Nathana Kinga a Seana Freemana. Mezi jejich největší hity patří „Something Abo...
Spočítej 24×5
24 × 5 = 120
null
Summarize key facts about „Martin Lewis (humorist)“ clearly and accurately.
**Martin Lewis (humorist)** Martin Neil Lewis (born 24 July 1952) is a US-based English humorist, writer, radio/TV host, producer, and marketing strategist. He is known for his participation in a variety of projects in the arts and entertainment worlds including his work as the co-creator and co-producer of the Secret...
null