instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
null
null
null
The Diary of Samuel Pepys The Diary of Samuel Pepys is a British historical television series which was originally broadcast on the BBC in 1958. Based on the diaries of the naval administrator Samuel Pepys, it portrays life at the court of Charles II during the 1660s. Main cast Peter Sallis as Samuel Pepys Susan Maryo...
Classify the given article as spam or ham.
Hello everyone, this is a spam message.
Spam
null
Using the given array, create a function that returns a new array that contains elements that are greater than the given number.
arr = [2, 3, 6, 9, 5] num = 4
def greater_than(arr, num): result = [] for el in arr: if el > num: result.append(el) return result print(greater_than(arr, num))
null
Create a recursive algorithm to sum the numbers between 1 and n (inclusive).
n = 5
function recSum(n) { if (n === 1) return 1; return n + recSum(n-1); } // Usage console.log(recSum(5)); // 15
null
null
null
null
If They Come in the Morning If They Come in the Morning: Voices of Resistance is a collection of writings about U.S. legal trials and prisons, edited by Angela Davis and published in 1971. Contributors included Black Panther Party members and the Soledad Brothers. As Davis' first book, it contains description of her e...
Given a list of words, write a Python function to print the frequency of occurrence of each word in the list.
['foo', 'bar', 'foo', 'baz', 'bar']
def word_frequency(words): freq = {} for word in words: if word not in freq: freq[word] = 0 freq[word] += 1 for word, count in freq.items(): print('{}: {}'.format(word, count)) word_frequency(['foo', 'bar', 'foo', 'baz', 'bar'])
null
Summarize key facts about „First Cabinet of Jacob Zuma“ clearly and accurately.
**First Cabinet of Jacob Zuma** Following his election as President of South Africa in the 2009 general election, Jacob Zuma announced his first cabinet on 10 May 2009. There were a total of 34 ministerial portfolios in the cabinet. On 31 October 2010, President Zuma announced a reshuffle in which two ministers were r...
null
Write a Python script to detect if a given text contains any URL.
import re def has_url(text): pattern = r"(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])?" matches = re.findall(pattern, text) if matches: return True return False
null
Napiš Python funkci: vrátí prvních n prvků (`first_n`).
```python def first_n(xs: list, n: int) -> list: return xs[:n] ```
null
Summarize key facts about „Christine Figgener“ clearly and accurately.
**Christine Figgener** Christine Figgener (born October 30, 1983) is a German marine conservation biologist, author, science communicator, and ocean advocate recognized for her work in sea turtle conservation, the fight against plastic pollution, and the empowerment of women in STEM. She is best known for documenting ...
null
Summarize key facts about „Reza Jahangiri“ clearly and accurately.
**Reza Jahangiri** Reza Jahangiri (born June 9, 1978) is an American entrepreneur. He is the CEO of American Advisors Group (AAG) and past co-chair of the National Reverse Mortgage Lenders Association (NRMLA). He was also senior publisher for The Reverse Review until it was sold to HousingWire in 2018. Education Jahan...
null
Jaký je rozdíl mezi == a === v JavaScriptu?
`==` porovnává s převodem typů, `===` bez převodu (striktní). Preferuj `===`, ať se vyhneš překvapením.
null
null
null
null
Pothohar Plateau The Pothohar Plateau (Punjabi, ), also known as Pothwar, is a plateau in north-western region of Punjab, Pakistan, located between Indus River and the Jhelum River. Geography Pothohar Plateau is bounded on the east by the Jhelum River, on the west by the Indus River, on the north by the Kala Chitta Ra...
Summarize key facts about „Max Keil Building (712 N. Market Street)“ clearly and accurately.
**Max Keil Building (712 N. Market Street)** Max Keil Building is a historic commercial building located at Wilmington, New Castle County, Delaware. It was built about 1850, and modified in the Art Moderne / Art Deco style in 1938. It is a three-story, single-bay commercial building with a rectangular plan built of wa...
null
null
null
null
Jonathan Wolff (philosopher) Jonathan Wolff (born 25 June 1959) is a British philosopher and academic. He was Professor of Philosophy and Dean of the Faculty of Arts and Humanities at University College London (UCL) in 2012–16. Life and career Wolff was born on 25 June 1959 to Herbert Wolff and Doris Wolff (née Polako...
Find the longest substring with non-repeating characters
def longest_substring(string): # Initialize the max length and the substring max_length = 0 substring = '' # Create an empty set to store previously seen characters char_set = set() # Iterate over the string for char in string: # If the character hasn't already been seen, if char not in char_set: # add it to the set ch...
null
Use the provided dataset to create a Corpus of English words in Python.
https://storage.googleapis.com/download.tensorflow.org/data/grammar_corpus.txt
f = open('grammar_corpus.txt', 'r') # Create an empty list to store the corpus corpus = [] # Loop through the file line by line for line in f: # Split the line into words words = line.lower().strip().split() # Check if the word is an english word if words[1].isalpha(): corpus.append(words[1]) f.close() print(corpus)
null
Create an SQL statement to select the records of students whose age is greater than 25.
SELECT * FROM Students WHERE Age > 25;
null
Summarize key facts about „Cortinarius alboviolaceus“ clearly and accurately.
**Cortinarius alboviolaceus** Cortinarius alboviolaceus is a basidiomycete mushroom of the genus Cortinarius native to Europe and North America. The mushroom is lilac, later yellowing and often becoming whitish/grayish. Its cap is 3–8 cm wide, conical to umbonate, dry, silky, with whitish to pale lilac flesh. The gill...
null
null
null
null
Alexandr Berkman Alexandr Berkman (rusky Александр Беркман, 21. listopadu 1870, Vilnius, Ruské impérium – 28. června 1936, Nice, Francie) byl anarchista židovského původu známý pro svůj politický aktivismus a psaní. Byl předním členem anarchistického hnutí na počátku 20. století. Život Berkman se narodil ve Vilniusu v...
Create a function that compares two numbers and returns 'lower', 'higher', or 'equal' based on the comparison.
def compare_numbers(num1, num2): if num1<num2: return 'lower' elif num1>num2: return 'higher' else: return 'equal'
null
Summarize key facts about „Not Like You“ clearly and accurately.
**Not Like You** "Not Like You" is a song by German recording artist Alexander Klaws. It was written by Nick Jarl, Alexander Kronlund, Kurt49 and produced by the former for Klaws's third studio album Attention! (2006). Formats and track listings Charts References External links 2006 singles 2006 songs Alexander Klaws ...
null
Implement a function in C that given inputs x, y and z, return the largest of them.
x = 3, y = 4, z = 6
#include <stdio.h> // Function to find maximum int max_of_three(int x, int y, int z) { int max = x; if (y > max) max = y; if (z > max) max = z; return max; } // Driver program int main() { int x = 3, y = 4, z = 6; printf("%d", max_of_three(x, y, z)); return 0; }
null
Create an array of 5 increasing numbers starting from 10.
var arr = [10, 11, 12, 13, 14];
null
What type of neural network is used for language generation?
Recurrent Neural Networks (RNNs) are commonly used for language generation. Long Short-Term Memory (LSTM) networks and Gated Recurrent Units (GRUs) are prominent examples of RNNs used for language generation.
null
Generate an array containing numbers between 1 and 100 that are divisible by both 5 and 7.
let result = []; for(let i = 1; i <= 100; i++){ if (i % 5 == 0 && i % 7 == 0) result.push(i); }; console.log(result);
null
Create a React component to render a pie chart
import React from 'react'; import {Pie} from 'react-chartjs-2'; const data = { labels: [ 'Red', 'Green', 'Yellow' ], datasets: [{ data: [300, 50, 100], backgroundColor: [ '#FF6384', '#36A2EB', '#FFCE56' ], hoverBackgroundColor: [ '#FF6384', '#36A2EB', '#FFCE56' ] }] }; export const PieChartComponent = () => { return ( ...
null
Write a JavaScript code snippet to query a given database table.
Table Name: users
const query = "SELECT * FROM users"
null
null
null
null
HD 121504 b HD 121504 b is an exoplanet that is likely to be slightly less massive than Jupiter. Although the radial velocity method that was used to detect the planet can only measure the minimum mass of the planet, it is very unlikely that its true mass would be much higher. HD 121504 b orbits the star at a distance...
Write a function that takes a number x and multiplies it by itself n amount of times using recursion.
x = 4 n = 3
def recursive_multiply(x, n): # Base case if n == 0: return 1 return x * recursive_multiply(x, n - 1) # Example x = 4 n = 3 print(recursive_multiply(x, n)) # Output: 64
null
Stručně shrň článek o tématu „Sportovní doplněk stravy“ a uveď hlavní fakta.
**Sportovní doplněk stravy** Sportovní doplňky stravy slouží k doplnění toho, co sportovcům ve stravě chybí vzhledem k jejich specifickým nutričním potřebám, nebo to, co na ně může pozitivně působit, obzvláště v různých obdobích a fázích tréninku. Důležité je, najít látku, která účinně zlepšuje výkonnost, ale není zak...
null
Napiš JS: vrať pole čísel 1..16.
```javascript const nums = Array.from({length: 16}, (_, i) => i + 1); ```
null
Write an SQL query to update the salary of all employees with the title 'Manager' to $50000.
UPDATE employees SET salary = 50000 WHERE title = 'Manager';
null
Modify the following C++ code to capitalize the uppercase letters in a given string.
#include <iostream> #include <string> int main() { std::string str = "hello world"; std::cout << str; return 0; }
#include <iostream> #include <string> #include <algorithm> int main() { std::string str = "hello world"; //Convert to uppercase letters std::transform(str.begin(), str.end(), str.begin(), ::toupper); std::cout << str; return 0; }
null
Write code to concatenate two given strings.
str1 = 'hello' str2 = 'world'
def concatenate(str1, str2): """ Concatenates two given strings. """ return str1 + str2
null
null
null
null
Akademické mistrovství světa v orientačním běhu 1992 8. Akademické mistrovství světa v orientačním běhu proběhlo ve Spojeném království ve dnech 26. až 31. července 1992. Centrem závodů AMS byl Aberdeen. Závodů se zúčastnilo celkem 163 závodníků (89 mužů a 74 žen) z 22 zemí. Program závodů Program mistrovství světa: Z...
Create an array of 5 Strings: "Apple", "Banana", "Orange", "Lemon" and "Grape".
my_array = ["Apple", "Banana", "Orange", "Lemon", "Grape"]
null
Stručně shrň článek o tématu „Anatolij Rybakov“ a uveď hlavní fakta.
**Anatolij Rybakov** Anatolij Naumovič Rybakov (rusky Анатолий Наумович Рыбаков, 14. ledna 1911, Černihiv – 23. prosince 1998, New York) byl ruský spisovatel, autor částečně autobiografických antistalinistických děl jako např. Děti Arbatu a Třicátý pátý a další roky. Život Narodil se v ukrajinském Černigově, v židovsk...
null
Stručně shrň článek o tématu „Bane NOR“ a uveď hlavní fakta.
**Bane NOR** Bane NOR SF je norská státní společnost, která je odpovědná za norskou železniční infrastrukturu. Sídlo společnosti je v Hamaru. Historie Společnost vznikla 1. ledna 2017 v důsledku železniční reformy, prosazené norskou vládou v roce 2015. Původně byla za správu norské železniční sítě odpovědná organizace...
null
Summarize key facts about „Latar“ clearly and accurately.
**Latar** Latar () is a village in Chehel Shahid Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 445, in 128 families. References Populated places in Ramsar County
null
Write a SQL query to list all employees who earn more than $1000 per month and reside in Texas.
SELECT * from employees WHERE salary > 1000 and state = 'Texas';
null
Summarize key facts about „Unidos Permanecemos“ clearly and accurately.
**Unidos Permanecemos** Unidos Permanecemos (Spanish for "United We Stand") is a live album by Australian band Hillsong United. It was recorded in Spain and sung in Spanish. AllMusic gave the album a four star rating out of five, writing that "The fact that the Aussies took the time to learn the lyrics and enunciate t...
null
null
null
null
Karel Dostal Karel Dostal (14. března 1884 Nymburk – 1. března 1966 Praha) byl český divadelní režisér a herec. Život Narodil se v Nymburce v rodině spolumajitele poděbradského cukrovaru Leopolda Dostala a bývalé herečky Prozatímního divadla Marie Horské-Kallmünzerové. Celá rodina byla umělecky zaměřená – i jeho souro...
Write a Python program to create a nested dictionary from two lists.
l1 = ['a', 'b', 'c'] l2 = [1, 2, 3]
{'a': 1, 'b': 2, 'c': 3}
null
Spočítej: 24 + 9 = ?
24 + 9 = 33
null
Implementuj `retry` v Pythonu — zavolá fn max n-krát při výjimce.
```python import time def retry(fn, n=3, delay=0.1): last = None for _ in range(n): try: return fn() except Exception as e: last = e time.sleep(delay) raise last ```
null
Determine the longest word in a given string.
sentence = "I am Python Programmer"
def longest_word(sentence): words = sentence.split() max_len = len(words[0]) for word in words: if len(word) > max_len: max_len = len(word) max_word = word return max_word print(longest_word('I am Python Programmer')) Output: Programmer
null
null
null
null
José Barbosa José Barbosa (1 April 1929 in San Juan, Puerto Rico – 14 February 2015 in Palm Harbor, Florida) was a Puerto Rican pole vaulter who competed in the 1948 Summer Olympics. References 1929 births 2015 deaths Puerto Rican male pole vaulters Olympic track and field athletes for Puerto Rico Athletes (track and ...
How can we delete all the elements of a list in Python?
def delete_all_elements(lst): del lst[:]
null
null
null
null
Mandriva Linux Mandriva Linux (předtím též Mandrake Linux nebo Mandrakelinux) je francouzská distribuce Linuxu (GNU/Linux) zaměřená na snadnost instalace a použití. Vyvíjela ji společnost Mandriva do roku 2012; na opuštěný projekt navazuje komunitní OpenMandriva Lx. První verze byla firmou Mandrakesoft postavena na Re...
Count the number of integers in the given 2D array.
[ [1, 2, 3], [4, 5, 6], [7, 8] ]
8
null
Write a CSS selector to select all the list items with class "list-item".
li.list-item { }
null
Summarize key facts about „2015 World Wrestling Championships – Women's freestyle 69 kg“ clearly and accurately.
**2015 World Wrestling Championships – Women's freestyle 69 kg** The women's freestyle 69 kilograms is a competition featured at the 2015 World Wrestling Championships, and was held in Las Vegas, United States on 9 September 2015. This freestyle wrestling competition consisted of a single-elimination tournament, with ...
null
Stručně shrň článek o tématu „Charles Best“ a uveď hlavní fakta.
**Charles Best** Charles Herbert Best (27. února 1899, Pembroke, Maine – 31. března 1978, Toronto, Kanada) byl kanadský vědec a jeden z objevitelů inzulinu. Život V roce 1915 se Best přestěhoval do Kanady, kde začal studovat na Torontské univerzitě. V roce 1918 narukoval do armády. Po válce dokončil studia fyziologie ...
null
Spočítej 8×5
8 × 5 = 40
null
null
null
null
Národní park delta Axia Národní park delta Axia, též Národní park Axios – Loudios – Aliakmonas () je řecký národní park v kraji Střední Makedonie. Zahrnuje lagunu v oblasti Kalochori, meandry řeky Gallikos, deltu a břehy řeky Axios (Vardar) až ke státním hranicím Řecka, dále deltu řeky Aliakmonas a mokřady a saliniště...
Napiš Android app v Kotlinu.
Kotlin/Android nedělám. Můžu pomoct s webem (HTML/JS/PHP) nebo Python skripty.
null
Define a function to merge two sorted arrays into a single sorted array.
arr1 = [1, 3, 5, 7] arr2 = [2, 4, 8, 10]
def merge_arrays(arr1, arr2): arr3 = arr1 + arr2 # Combine the arrays arr3.sort() # Sort the combined array return arr3 # Return the newly sorted array
null
null
null
null
Historie Josefa Egyptského Historie Josefa Egyptského (též Josef Egyptský se dává poznat svým bratřím) je obraz českého barokního malíře Petra Brandla z roku 1721. Historie díla Dílo se řadí mezi nejvýznačnější objednávky hraběte Františka Josefa Černína z Chudenic. Brandl pro něho pracoval od roku 1718. V té samé dob...
In Java, write a method which takes a two-dimensional array as input and prints it in spiral order.
[ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
public void printSpiral(int[][] matrix) { int top = 0, bottom = matrix.length - 1; int left = 0, right = matrix[0].length - 1; int dir = 0; while (top <= bottom && left <= right) { // Move left to right if (dir == 0) { for (int i = left; i <= right; i++) { System.out.print(matrix[top][i] + " "); } top++; } // Move top ...
null
From the given data set, calculate the mean and print it out.
[1, 2, 3, 4, 5]
data_set = [1, 2, 3, 4, 5] mean = sum(data_set) / len(data_set) print("The mean is {}".format(mean))
null
Stručně shrň článek o tématu „Škola základ života“ a uveď hlavní fakta.
**Škola základ života** Škola základ života je česká filmová komedie režiséra Martina Friče z roku 1938 natočená podle stejnojmenné hudební komedie a fejetonů Jaroslava Žáka. Film o tom, jak spolu vycházejí studenti a jejich pedagogové, co zábavného se dá zažít v hodinách, jsou-li ve třídě správní recesisté. Profesors...
null
null
null
null
Albert Goodheir Albert Goodheir (26. června 1912, Utrecht, Nizozemsko – 27. prosince 1995, Glasgow, Spojené království) byl skotský lékař, spisovatel, překladatel a esperantista. Dílo Vlastní dílo Merlo sur menhiro Fondita sur roko''' Nia kultura heredaĵo kaj esperanto Překlady D-ro Jekyll kaj S-ro Hyde - L. Stevenson...
Napiš Python funkci: převod na velká písmena (`to_upper`).
```python def to_upper(s: str) -> str: return s.upper() ```
null
Design a MongoDB database with a customers collection which contains the following fields: name, city, phone, and address.
{ "_id": ObjectID( 0000000001 ), "name": "John Doe", "city": "New York", "phone": "123-456-7890", "address": "123 Main Street" }
null
How can you move an element from one array to another in JavaScript?
let array1 = [1, 2, 3]; let array2 = [4, 5, 6];
let array1 = [1, 2, 3]; let array2 = [4, 5, 6]; let el = array1.pop(); array2.push(el); console.log(array2);
null
Write a function that takes an array of integers and multiplies them together.
arr = [3, 5, 4]
def multiplyArray(arr): result = 1 for x in arr: result = result * x return result
null
null
null
null
Union of Land, Food and Forests The Union of Land, Food and Forests () was a trade union representing workers in various related industries in East Germany. The union was founded in 1946, as the Industrial Union of Agriculture and Forestry, and in June it became part of the new Free German Trade Union Federation (FDGB...
Summarize key facts about „Ugly River“ clearly and accurately.
**Ugly River** The Ugly River is a river of the West Coast Region of New Zealand's South Island. It flows south to reach the Karamea River 17 kilometres northeast of Karamea. The river's entire length is within Kahurangi National Park See also List of rivers of New Zealand References Rivers of the West Coast, New Zeal...
null
Implement a code which reverses a given string.
String: "Hello World"
def reverse_string(string): rev_string = "" for i in range(len(string)-1, -1, -1): rev_string += string[i] return rev_string print(reverse_string("Hello World")) Output: dlroW olleH
null
Vysvětli databáze?
Databáze ukládá strukturovaná data tak, aby šla spolehlivě číst, zapisovat a dotazovat.
null
Write a SQL query that returns the sum of the values in a 'salary' column in a table named 'employees'.
SELECT SUM(salary) FROM employees;
null
Create a SQL query to find the total payments made a group of customers in the last 30 days.
SELECT customer_id, SUM(payment_amount) FROM payments WHERE payment_date > NOW() - INTERVAL 30 DAY GROUP BY customer_id;
null
Evaluate the following JavaScript expression: 15 * (3 + 7)
The result of 15 * (3 + 7) is 150.
null
Write a Python program to randomly sample a list without replacement.
list = [30, 40, 50, 60, 70, 80]
import random def sample_list(list): list_copy = list.copy() sampled_list = [] while list_copy: element = random.choice(list_copy) sampled_list.append(element) list_copy.remove(element) return sampled_list
null
Write a function to convert a 3 letter acronym to its full form.
Acronym: "GDP"
""" Convert a 3 letter acronym to its full form """ def acronym_to_full_form(acronym): acronyms = { 'GDP': 'Gross Domestic Product', 'CIA': 'Central Intelligence Agency', 'NASA': 'National Aeronautics and Space Administration' } return acronyms[acronym] if __name__ == '__main__': acronym = "GDP" print(acronym_to_full_f...
null
null
null
null
Obvodová rychlost Obvodová rychlost je fyzikální veličina, která vyjadřuje změnu dráhy za jednotku času při pohybu po kružnici. Obvodová rychlost bývá obvykle chápána jako skalární veličina, neboť její směr je vždy určen směrem tečny ke kružnici v daném bodě. Značení Symbol veličiny: v Jednotka SI: metr za sekundu, zn...
Python function for: read lines
```python def read_lines(path): with open(path, encoding='utf-8') as f: return f.read().splitlines() ```
null
Spočítej: 2 + 13 = ?
2 + 13 = 15
null
Find the kth smallest element in an array. The array consists of integers only and the size of the array is given.
def kthSmallest(arr, k): # Sort the given array arr.sort() # Return k'th element in # the sorted array return arr[k-1]
null
Summarize key facts about „Valsialam“ clearly and accurately.
**Valsialam** Valsialam (, also Romanized as Valsīālam) is a village in Sakht Sar Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 65, in 17 families. References Populated places in Ramsar County
null
Generate the Fibonacci sequence using a for loop in Python.
def generateFibonacciSequence(n): fib_sequence = [0,1] for i in range(2,n): fib_sequence.append(fib_sequence[i-1] + fib_sequence[i-2]) return fib_sequence
null
null
null
null
武術 武術 or 武术 means martial arts in East Asian languages, and may refer to: Bujutsu, meaning Japanese martial arts Musul, meaning Korean martial arts Võ thuật, meaning Vietnamese martial arts Wushu (term), meaning Chinese martial arts Wushu (sport), an exhibition and a full-contact sport derived from traditional Chinese...
Compare inheritance and composition in Python
Inheritance and composition in Python are two approaches for achieving code reuse. Inheritance involves creating a parent class which contains method and member field definitions. These are then used in a subclass and can be overridden to make them more specialized. Composition involves designing objects that contain r...
null
Compare and contrast the following two functions.
Function 1: int add(int a, int b) { return a + b; } Function 2: int sub(int a, int b) { return a - b; }
Function 1 adds two integers and returns the result. Function 2 subtracts one integer from another and returns the result. Both functions have the same parameter types, but the operation that each one performs is different. The return type of both functions is an integer.
null
Stručně shrň článek o tématu „Světový pohár v biatlonu 2017/2018 – Holmenkollen“ a uveď hlavní fakta.
**Světový pohár v biatlonu 2017/2018 – Holmenkollen** 8. podnik Světového poháru v biatlonu v sezóně 2017/18 probíhal od 15. do 18. března 2018 na biatlonovém stadionu Holmenkollen v norském Oslu. Na programu podniku byly sprinty, mužské i ženské štafety a stíhací závody. Do světového poháru zde poprvé nastoupil český...
null
Create a function called "sum" which returns the sum of the two given numbers
def sum(x, y): return x+y
null
Summarize key facts about „Vitali convergence theorem“ clearly and accurately.
**Vitali convergence theorem** In real analysis and measure theory, the Vitali convergence theorem, named after the Italian mathematician Giuseppe Vitali, is a generalization of the better-known dominated convergence theorem of Henri Lebesgue. It is a characterization of the convergence in Lp in terms of convergence i...
null
Summarize key facts about „Kodeeswari“ clearly and accurately.
**Kodeeswari** Kodeeswari was a Tamil quiz show which aired on Colors Tamil from Monday to Friday at 8 pm. It is the Indian Tamil women's edition of Who Wants to Be a Millionaire?. It was started on 23 December 2019. It was hosted by Raadhika Sarathkumar History In 2019, the show was restarted from Neengalum Vellalam ...
null
Stručně shrň článek o tématu „Římskokatolická farnost Dobešov“ a uveď hlavní fakta.
**Římskokatolická farnost Dobešov** Římskokatolická farnost Dobešov je farnost Římskokatolické církve v děkanátu Bílovec ostravsko-opavské diecéze. Vesnice Dobešov patřila od středověku k farnost Odry. Zřejmě za Jeronýma z Lideřova (panství Odry vlastnil v letech 1470–1515) byl v Dobešově postaven filiální kostel svat...
null
Compute the big-O time complexity for this algorithm.
def factorial(n): if n == 0: return 1 else: return n*factorial(n-1)
The time complexity for this algorithm is O(n).
null
null
null
null
Alexandr Ioan Cuza Alexandr Jan Cuza (rumunsky: Alexandr Ioan Cuza) (20. březen 1820, Huși, Rumunsko – 15. květen 1873, Heidelberg, Německo) byl v letech 1859–1862 kníže Valašska a Moldávie a zároveň v letech 1859–1866 vládce resp. domnitor Spojených knížectví Valašska a Moldávie (od roku 1862 Spojené knížectví Rumuns...
null
null
null
As Long as I Have You As Long as I Have You je deváté sólové studiové album anglického zpěváka Rogera Daltreyho. Vydáno bylo 1. června roku 2018. Jde o zpěvákovo první sólové album po šestadvaceti letech – to předchozí s názvem Rocks in the Head vydal roku 1992. Kromě autorských písní obsahuje také coververze skladeb ...
Summarize key facts about „Schmitt trigger“ clearly and accurately.
**Schmitt trigger** In electronics, a Schmitt trigger is a comparator circuit with hysteresis implemented by applying positive feedback to the noninverting input of a comparator or differential amplifier. It is an active circuit which converts an analog input signal to a digital output signal. The circuit is named a t...
null
Print the third item of the list.
my_list = ["apple","banana","cherry"]
print(my_list[2]) # cherry
null
Napiš v PHP: json response.
```php function json_out($data, int $code=200): void { http_response_code($code); header('Content-Type: application/json; charset=utf-8'); echo json_encode($data, JSON_UNESCAPED_UNICODE); } ```
null
Stručně shrň článek o tématu „Rotenon“ a uveď hlavní fakta.
**Rotenon** Rotenon je organická sloučenina patřící mezi flavonoidy bez zápachu, používá se v širokém spektru jako insekticid a piscicid. Přirozeně se vyskytuje v kořenech rostlin, například vinné révy. Způsobuje Parkinsonovu chorobu, když byl injekcí podán krysám, projevily se u nich příznaky této choroby. Rotenon za...
null
Output a list with all the numbers from 0 to 100 that are divisible by 8.
result = [x for x in range(101) if x % 8 == 0] print(result)# [0, 8, 16, 24, 32, 40, 48, 56, 64, 72, 80, 88, 96, 100]
null
null
null
null
SS Empire Blessing Empire Blessing was a cargo ship which was built in 1943 by Bartram & Sons Ltd, Sunderland. She was built for the Ministry of War Transport (MoWT) and operated under the management of W Runciman & Co Ltd. In March 1945, Empire Blessing struck a mine in the River Scheldt and sank. Description Empire ...
Summarize key facts about „Upper Grey River“ clearly and accurately.
**Upper Grey River** The Upper Grey River is a river of the West Coast Region of New Zealand's South Island. As the name suggests, it is a stretch of the Grey River, and the name is used for the section between the confluence of the Blue Grey River, Brown Grey River, and Crooked Mary Creek in the Southern Alps and the...
null