instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Description a Swift class with one variable "name" and one method "printName()".
class MyClass { var name: String func printName() { print(name) } }
null
Napiš PHP hello world.
```php <?php echo "Hello, world\n"; ```
null
Identify and display all the data types within the column 'price' in a table named 'products'.
SELECT DISTINCT data_type FROM products WHERE column_name = 'price';
null
Summarize key facts about „Tongapōrutu River“ clearly and accurately.
**Tongapōrutu River** The Tongapōrutu River is a river of the Taranaki region of New Zealand's North Island. It initially flows north from its origins near Tahora, turning west to reach the Tasman Sea coast close to the settlement of Tongapōrutu, south of Mokau. One of the largest North Island water falls, Mount Dampe...
null
null
null
null
Balázs Győrffy Balázs László Győrffy (4 May 1938 – 25 October 2012) was a Hungarian-American-British theoretical physicist. In his obituary, the Times Higher Education described him as "one of the dominant international figures in the development of the theory of condensed matter". Győrffy is thought to be the first p...
Stručně shrň článek o tématu „Volby v San Marinu“ a uveď hlavní fakta.
**Volby v San Marinu** Volby v San Marinu jsou svobodné. Volby probíhají pouze do jednokomorového parlamentu, do kterého se poměrným volebním systémem volí 60 poslanců na pětileté volební období. V čele státu stojí dva kapitáni-regenti, kteří jsou nepřímo voleni parlamentem na šestiměsiční mandát. Dominantní politické...
null
Suggest an API endpoint for updating an existing blog post in Ruby on Rails.
put "/posts/:id" do post = Post.find(params[:id]) if post.update(params[:post]) status 200 json post.to_json else status 400 json post.errors end end
null
null
null
null
Across the Bridge (short story) "Across the Bridge" is a 1938 short story by Graham Greene. It was published in the 1947 collection Nineteen Stories. The work was filmed in 1957, starring Rod Steiger, and as Double Take in 2001. Plot The story is told first-person by an unnamed narrator who reveals little about himsel...
Stručně shrň článek o tématu „Priscilla Lopesová-Schliepová“ a uveď hlavní fakta.
**Priscilla Lopesová-Schliepová** Priscilla Lopesová-Schliepová, rozená Priscilla Lopesová (* 26. srpna 1982 Scarborough, Ontario) je kanadská atletka, sprinterka, která se věnuje krátkým překážkovým běhům. Na Letních olympijských hrách 2008 v Pekingu vybojovala bronzovou medaili v běhu na 100 metrů překážek. Sportovn...
null
Stručně shrň článek o tématu „Jiří Šust“ a uveď hlavní fakta.
**Jiří Šust** Jiří Šust (28. srpna 1919 Praha – 30. dubna 1995 Praha) byl český hudební skladatel, autor filmové hudby. Byl dvorním skladatelem Jiřího Menzela, napsal hudbu ke dvanácti jeho filmům. Život V letech 1936–1939 studoval na Moskevské státní konzervatoři hru na klavír u Grigorije Ginzburga a skladbu u Sergej...
null
Stručně shrň článek o tématu „Pane, vy jste vdova!“ a uveď hlavní fakta.
**Pane, vy jste vdova!** Pane, vy jste vdova! je česká filmová komedie režiséra Václava Vorlíčka z roku 1970. Stěžejním motivem filmu je záměna těl (respektive výměna mozků), z čehož pramení různé komické situace. Iva Janžurová dostala za dvojroli ve filmu ocenění na Mezinárodním filmovém festivalu fantastických filmů...
null
Spočítej: 29 + 4 = ?
29 + 4 = 33
null
Design a code to check if a given list is ordered in an increasing order.
lst = [1, 2, 3, 5, 4]
def is_increasing(lst): for i in range(len(lst)-1): if lst[i] >= lst[i+1]: return False return True
null
Stručně shrň článek o tématu „Zvěstování (rozcestník)“ a uveď hlavní fakta.
**Zvěstování (rozcestník)** Zvěstování může být: Zvěstování Panny Marie či Zvěstování Páně – oznámení Panně Marii archandělem Gabrielem, že se jí narodí Boží syn zvěstování evangelia – propagace křesťanství (doslova šíření dobré zprávy) Umělecké dílo: Zvěstování (Brandl), od malíře Petra Brandla Zvěstování (Caravaggio...
null
null
null
null
Aïn Doura Baths The Aïn Doura Baths are a series of Roman-era ruins located in Dougga, Tunisia. The site contains ruins from a Roman bath dating to the 4th century, and is considered an important archaeological heritage site by the National Heritage Institute of Tunisia. Description The Aïn Doura baths were built in e...
Mluv korejsky.
Tohle jazyk spolehlivě neovládám. Můžu česky nebo anglicky.
null
Stručně shrň článek o tématu „Aleksander Doba“ a uveď hlavní fakta.
**Aleksander Doba** Aleksander Doba (9. září 1946 – 22. února 2021) byl polský kajakář. Roku 1999 plul na kajaku přes Baltské moře. V roce 2010 přeplul na sedmimetrovém kajaku Atlantský oceán, a to ze Senegalu do Brazílie. Plavba byla dlouhá 5 394 kilometrů a trvala bezmála 99 dnů. V roce 2013 absolvoval další plavbu ...
null
null
null
null
Perioda (fyzika) Perioda označuje ve fyzice fyzikální veličinu, která udává dobu trvání jednoho opakování periodického děje. Perioda tedy označuje dobu potřebnou k tomu, aby se systém dostal zpět do výchozího stavu. Značení Symbol veličiny: Základní jednotka SI: sekunda, značka jednotky: s Další jednotky: viz čas Vzta...
Create a function in JavaScript that finds the maximum number between two given numbers.
function maxNum(num1, num2) { if (num1 > num2) { return num1; } else { return num2; } }
null
Co je cache?
Cache dočasně ukládá výsledky, aby se nemusely počítat/stahovat znovu.
null
Stručně shrň článek o tématu „Eurovision Song Contest 2012“ a uveď hlavní fakta.
**Eurovision Song Contest 2012** Eurovision Song Contest 2012 byl 57. ročník každoroční soutěže. Po vítězství ázerbájdžánských reprezentantů, dua Ell & Nikki s písní "Running Scared"" na Eurovizi 2011 v Düsseldorfu byla soutěž uspořádána v Baku. Vítězkou se stala švédská zástupkyně Loreen s písní "Euphoria", která obd...
null
Summarize key facts about „Vibra São Paulo“ clearly and accurately.
**Vibra São Paulo** Vibra São Paulo (formerly known as Credicard Hall) is a music theatre in the Santo Amaro neighbourhood, city of São Paulo, Brazil. It opened in September 1999, with capacity for 7,000 people. Considered to be one of the largest indoor entertainment venues in Brazil and one of the largest in Latin A...
null
null
null
null
9th Missouri Infantry Regiment (disambiguation) The 9th Missouri Infantry Regiment was an infantry regiment of the Confederate States Army in the American Civil War. 9th Missouri Infantry Regiment may also refer to: 12th Missouri Infantry Regiment (Confederate), a Confederate States Army unit also known as the 9th Mis...
null
null
null
Dobré světlo Dobré světlo je československé filmové psychologické drama s erotickými scénami režiséra Karla Kachyni z roku 1986 natočeného podle námětu Karla Čabrádka ve Filmovém studiu Barrandov. V hlavní roli se představí Karel Heřmánek. Děj Viktor Průcha (Karel Heřmánek), architekt ve středních letech, prožívá na m...
Create a SQL query that performs a SELECT operation on a table "employee" with columns Id, Name, Age.
SELECT Id, Name, Age FROM employee;
null
Create a JSON object with the following properties: name, age, and hobby.
{ "name": "John Doe", "age": 28, "hobby": "Reading" }
null
thx
Anytime.
null
Implement a function in JavaScript that returns true if an object is empty, false otherwise.
function isEmptyObject(obj) { return Object.keys(obj).length === 0; }
null
Create a JavaScript class to generate random numbers.
class RandomGenerator { constructor() { } generateRandomNumber() { return Math.random(); } }
null
Write a code snippet in Java that sorts a given array in ascending order.
public static void sortAscending(int[] arr) { int n = arr.length; for (int i = 0; i < n-1; i++) for (int j = 0; j < n-i-1; j++) if (arr[j] > arr[j+1]) { int temp = arr[j]; arr[j] = arr[j+1]; arr[j+1] = temp; } }
null
Write a Java function for reversing a given array of integers.
arr = [1,2,3,4,5,6]
public static void reverse(int arr[]) { int i, j; int n = arr.length; for (i = 0; i < n/2; i++) { j = n - i - 1; int temp = arr[i]; arr[i] = arr[j]; arr[j] = temp; } }
null
Create a function that prints a list of all the even numbers from a given list of integers.
test_list = [1, 2, 3, 4, 5, 6]
def print_even(test_list): even_list = [] for num in test_list: if num % 2 == 0: even_list.append(num) print(even_list)
null
Create a HTML form for entering first name and last name.
<form> <label>First name:</label> <input type="text" name="first_name" /> <br><br> <label>Last name:</label> <input type="text" name="last_name" /> <br><br> <input type="submit" value="Submit" /> </form>
null
Write a JavaScript code to print the pyramid pattern for a given number of rows.
7
function pyramid(n) { for (let i = 0; i < n; i++) { let str = ''; for (let j = 0; j < n-i; j++) { str = str + ' '; } for (let k = 0; k <= i; k++ ) { str = str + '* '; } console.log(str); } } pyramid(7);
null
Summarize key facts about „Luca Turilli“ clearly and accurately.
**Luca Turilli** Luca Turilli (born 5 March 1972) is an Italian composer, arranger, producer and multi-instrumentalist constantly engaged in various musical projects. Having always declared to love music at 360 degrees, Turilli has dedicated himself to multiple musical genres, ranging from trance and electronic music ...
null
Suggest a completion for the following to check if a given key exists in a dictionary or not.
my_dict = {"name": "John", "age": 27} # Do something
my_dict = {"name": "John", "age": 27} if "name" in my_dict: print("Key present")
null
When should the `break` keyword be used in a loop?
The break keyword should be used in a loop when the loop needs to be terminated before it has finished executing its normal iterations. The break statement will cause the loop to exit immediately, bypassing any remaining code in the loop.
null
You need to write a function to find the absolute difference between a number and its reverse.
def absolute_difference(n): num = str(n) rev = num[::-1] diff = int(num) - int(rev) return abs(diff)
null
Summarize key facts about „Xianyang–Tongchuan railway“ clearly and accurately.
**Xianyang–Tongchuan railway** The Xianyang–Tongchuan railway () is a railway line in Shaanxi, China. History Construction on the line began in April 1939. The railway was completed and opened in December 1941. Due to declining passenger numbers amid competition from road, passenger service on the line was suspended i...
null
Write a lambda expression to deduct 10 from a number.
lambda x: x-10
null
Stručně shrň článek o tématu „Seemann“ a uveď hlavní fakta.
**Seemann** Seemann (česky Námořník) je druhý singl skupiny Rammstein. Byl vydán 8. ledna 1996. Na obalu singlu je vyobrazena loď z videoklipu k songu Seemann, jenž byl natočen roku 1996 v berlínských ateliérech. Na singlu se nenachází remixy, kromě skladby Seemann obsahuje také píseň „Wollt ihr das Bett in Flammen Se...
null
Implementuj v Pythonu unique preserve order.
```python def unique(seq): seen = set() out = [] for x in seq: if x not in seen: seen.add(x) out.append(x) return out ```
null
null
null
null
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 193...
Napiš HTML: script defer.
```html <script src="app.js" defer></script> ```
null
Stručně shrň článek o tématu „John C. Butcher“ a uveď hlavní fakta.
**John C. Butcher** John Charles Butcher (* 31. března 1933 Auckland) je novozélandský matematik, který se specializuje na numerické metody pro řešení obyčejných diferenciálních rovnic. Butcher pracuje na vícekrokových metodách pro řešení obyčejných diferenciálních rovnic s počátečními podmínkami (jako jsou např. meto...
null
Create a form element in HTML and also include a submit button.
<form> <input type="text" name="name"> <button type="submit">Submit</button> </form>
null
You are given a list of numbers. Construct a for loop to filter out the odd numbers from the list.
arr = [1,2,3,4,5]
odds = [] for num in arr: if num % 2 == 1: odds.append(num) print(odds)
null
Modify the code below to create a new function called "addSquares()" that adds the squares of two numbers and returns the result.
def add(x, y): return x + y
def add(x, y): return x + y def addSquares(x, y): return x*x + y*y
null
null
null
null
William Shea (disambiguation) William Shea (1907–1991) was an American lawyer and baseball league founder. William Shea may also refer to: William Shea (actor) (1856–1918), British actor William A. Shea (mayor), American politician William J. Shea (1900–1965), justice of the Connecticut Supreme Court William ("Bill") ...
Summarize key facts about „Christine Goitschel“ clearly and accurately.
**Christine Goitschel** Christine Béranger-Goitschel (born 9 June 1944) is a former French alpine skier. She is the elder sister of fellow champion skier Marielle Goitschel and the aunt of the former speed skier Philippe Goitschel. Her sister Patricia was a national junior champion in the slalom in 1964. After great s...
null
Summarize key facts about „Huang Wenbi“ clearly and accurately.
**Huang Wenbi** Huang Wenbi (; April 23, 1893 – December 18, 1966) was a Chinese archaeologist specializing in Xinjiang. Huang was born in Hanchuan, Hubei Province. After graduating from Peking University in 1918, he became a faculty member of the university. From 1927 to 1930, he participated in the Sino-Swedish Expe...
null
null
null
null
Eastern pygmy marmoset The eastern pygmy marmoset (Cebuella niveiventris) is a marmoset species, a very small New World monkey, found in the southwestern Amazon Rainforest in Bolivia, Brazil, Ecuador, and Peru. It was formerly regarded as conspecific with the similar western pygmy marmoset, but the eastern pygmy marmo...
Create an Objective-C function to print out an array of numbers.
void printArray(int arr[], int size) { for (int i=0; i < size; i++) printf("%d ", arr[i]); printf("\n"); }
null
null
null
null
Šíření tepla Šíření tepla (někdy též sdílení tepla) je jedním ze způsobů přenosu energie. Spočívá v tepelné výměně, což je termodynamický děj, při kterém dochází k výměně tepla mezi dvěma tělesy s různou teplotou. Tepelná výměna vždy probíhá tak, že teplejší těleso předává část své vnitřní energie chladnějšímu tělesu....
Create a HTML form and assign 'onSubmit' handler to it.
<form onSubmit="alert('Form submitted')"> <!-- Form Content --> <input type="submit" value="Submit"> </form>
null
Summarize key facts about „Motif“ clearly and accurately.
**Motif** Motif may refer to: General concepts Motif (chess composition), an element of a move in the consideration of its purpose Motif (folkloristics), a recurring element that creates recognizable patterns in folklore and folk-art traditions Motif (music), a salient recurring fragment or succession of notes Motif (...
null
Summarize key facts about „Enayati-ye Vasat“ clearly and accurately.
**Enayati-ye Vasat** Enayati-ye Vasat (, also Romanized as ʿEnāyatī-ye Vasaṭ) is a village in Abshar Rural District, in the Central District of Shadegan County, Khuzestan Province, Iran. At the 2006 census, its population was 385, in 45 families. References Populated places in Shadegan County
null
Summarize key facts about „The Rock Heroes“ clearly and accurately.
**The Rock Heroes** The Rock Heroes are one of the artist collectives operating under the Big Eye Music banner specializing in modern and classic rock. As of early 2004, they have released over 50 albums both compact disc and digitally. The group achieved their biggest success when their version of Kid Rock’s “All Sum...
null
Summarize key facts about „Little curlew“ clearly and accurately.
**Little curlew** The little curlew (Numenius minutus) is a wader in the large bird family Scolopacidae. It is a very small curlew, which breeds in the far north of Siberia. It is closely related to the North American Eskimo curlew. The word "curlew" is imitative of the Eurasian curlew's call, but may have been influe...
null
Summarize key facts about „Conophytum ficiforme“ clearly and accurately.
**Conophytum ficiforme** Conophytum ficiforme is a small South African species of succulent plant of the genus Conophytum. Description The name "ficiforme" is Latin for "fig-shaped", and refers to the shape of their bodies, which is raised, globose and keeled. In addition, they can be distinguished from most other Con...
null
Summarize key facts about „Horace Abbott“ clearly and accurately.
**Horace Abbott** Horace Abbott (July 29, 1806 – August 8, 1887) was an American iron manufacturer and banker. His work included the armor plating for the , , , and . He was born in Sudbury, Massachusetts, to Alpheus Abbott and Lydia Fay, who were both farmers. After his father's death and subsequent blacksmithing app...
null
Write a regex pattern to find all words that start with 'a' in a sentence.
Sentence: "All animals are amazing"
""" Find all words that start with 'a' in a sentence """ import re def find_words_with_a(sentence): pattern = r"\b[aA]\w+\b" matches = re.findall(pattern, sentence) return matches if __name__ == '__main__': sentence = "All animals are amazing" print(find_words_with_a(sentence))
null
Ahoj! tam?
Zdravím! Napiš úkol — rád pomůžu.
null
Name a few use cases of Convolutional Neural Networks.
Convolutional Neural Networks are widely used in domains such as computer vision, natural language processing, pattern recognition, time series analysis, audio processing, object recognition and classification, and for other tasks such as image segmentation, automated image captioning, image deblurring, object detectio...
null
Construct a for loop in Python to iterate through the list [3, 2, 5, 4, 6] in reverse order.
for num in reversed([3, 2, 5, 4, 6]): print(num)
null
Write a JavaScript program to detect if a given element exists in an array or not.
Array: [1,2,3,4,5] Search element: 3
function findElement(arr, element){ for (let i = 0; i < arr.length; i++) { if (arr[i] === element) { return true } } return false; }
null
Rotate the given array by k steps.
Array: [1,2,3,4,5] k: 2
def rotate_array(arr, k): for i in range(k): arr.insert(0, arr.pop()) return arr print(rotate_array([1,2,3,4,5],2)) Output: [4, 5, 1, 2, 3]
null
Rewrite the following code using try and except blocks.
if (len(list) == 0): print("List is empty")
try: if (len(list) == 0): print("List is empty") except: print("No list is given")
null
Summarize key facts about „Daimler Conquest“ clearly and accurately.
**Daimler Conquest** The Daimler Conquest is an automobile which was produced by The Daimler Company Limited in the United Kingdom from 1953 to 1958. Based on the Lanchester Fourteen, the Conquest replaced the Daimler Consort. Sales were affected by increasing prices and by the fuel shortage caused by the Suez Crisis,...
null
Write a python code to check for a number being prime or not.
num = 11
# Initialize a boolean no_prime no_prime = False # Check all numbers lower than num for i in range(2, num): if num % i == 0: no_prime = True break # Print the appropriate output if no_prime: print(num, 'is not prime') else: print(num, 'is prime')
null
null
null
null
Václav Bahník Václav Bahník (13. dubna 1918 Hrdlořezy – 3. března 2003 Liberec) byl český překladatel italské a antické literatury (z latiny i z klasické řečtiny). Jím přeložená díla jsou obsažena v několika maturitních učebnicích českého jazyka. Život Po maturitě na mladoboleslavském gymnáziu v roce 1936 začal studov...
Solve the following problem
Given two strings s and t, find the minimum window in s which will contain all the characters in t.
def minWindow(s, t): # Initialize with None minWindowLength = None leftIndex = 0 # Balance will act as alphabet to store the occurrence of each character in t balance = {} for char in t: if char not in balance: balance[char] = 1 else: balance[char] += 1 # leftIndex and rightIndex act as two poiners to traverse the list...
null
null
null
null
Tiếng gọi thanh niên Tiếng gọi thanh niên, or Thanh niên hành khúc (, "March of the Youths") and originally the March of the Students (, ) is a famous song of the musician Lưu Hữu Phước. Its lyric was modified to make the anthem of State of Vietnam from 1948 to 1955 and Republic of Vietnam (South Vietnam) from 1955 to...
Spočítej 20×3
20 × 3 = 60
null
null
null
null
Lorenzo Mascheroni Lorenzo Mascheroni (13. května 1750 Bergamo – 14. července 1800 Paříž) byl italský básník a matematik. Narodil se v Bergamu, stal se knězem, ze zájmu se ovšem jako samouk věnoval matematice a vydal v ní celou řadu vědeckých prací, zejména o geometrii (Nuove ricerche sull' equilibrio delle volte, 178...
Kolik je 23 - 5?
23 - 5 = 18
null
Summarize key facts about „Dieuches notatus“ clearly and accurately.
**Dieuches notatus** Dieuches notatus is a species of dirt-colored seed bug in the family Rhyparochromidae found in Australia and New Zealand. References External links Rhyparochromidae Hemiptera of Oceania Insects described in 1852
null
Create a SQL query to find records from the given table with age greater than or equal to 30 and status is active.
Table: name | age | status John | 28 | Active Doe | 30 | Inactive Alice | 40 | Active
SELECT * FROM table WHERE age >= 30 AND status = 'Active';
null
Generate a set of five English words starting with the letter "P".
panther, plane, purple, parking, planet
null
Napiš JS: vrať pole čísel 1..19.
```javascript const nums = Array.from({length: 19}, (_, i) => i + 1); ```
null
Kolik je 28 - 2?
28 - 2 = 26
null
Implementuj `dict_keys` v Pythonu — seřadí klíče slovníku.
```python def sorted_keys(d: dict) -> list: return sorted(d.keys()) ```
null
Summarize key facts about „Tuknanavuhpi“ clearly and accurately.
**Tuknanavuhpi** Tuknanavuhpi''' is a two-player abstract strategy board game played by the Hopi Native American Indians of Arizona, United States. It is also played in many parts of Mexico. The game was traditionally played on a slab of stone with the board pattern etched on it. Tukvnanawopi resembles draughts and Al...
null
null
null
null
Alerion Alerion je obecná heraldická figura v podobě ptáka s rozepjatými křídly. Pochází z oblasti Francie, kde se objevil v erbovníku Armorial d'Urfe (1380–1400) a bývá zobrazován jako orel beze zbroje, tedy bez zobáku a drápů. V české heraldice je alerion jako figura neznámý, objevuje se až s příchodem vládnoucí dyn...
Co je API?
API je rozhraní, přes které spolu programy komunikují — často přes HTTP a JSON.
null
Vysvětli funkce?
Funkce je pojmenovaný blok kódu, který bere vstupy a vrací výsledek. Umožňuje znovupoužití logiky.
null
Concatenate the two strings below, with a space inserted between them.
A = "Hello" B = "World!"
A + ' ' + B
null
Design a function using Python to remove all vowels from a string.
def remove_vowels(string): vowels = 'aeiouAEIOU' new_string = '' for char in string: if char not in vowels: new_string += char return new_string
null
Write a Python function to replace all the occurrences of a given substring with another.
string = "Hello World" substring = "World" replacement = "Universe"
def replace_substring(string, substring, replacement): return string.replace(substring, replacement)
null
Summarize key facts about „Aathal railway station“ clearly and accurately.
**Aathal railway station** Aathal is a railway station in the Swiss canton of Zürich and municipality of Seegräben. It is on the Wallisellen to Rapperswil via Uster line. The station is close to the Aathal Dinosaur Museum and a 15 minute walk from Jucker Farm in Seegräben. Service The station is served by Zürich S-Bah...
null
Create a function to convert a given word to title case.
def to_title_case(word): return word[0].upper() + word[1:].lower()
null
Create an HTML table
<table> <tr> <td>Name</td> <td>Age</td> <td>Hobby</td> </tr> <tr> <td>John</td> <td>28</td> <td>Travelling</td> </tr> <tr> <td>Amanda</td> <td>27</td> <td>Reading</td> </tr> </table>
null
Stručně shrň článek o tématu „Pension pro svobodné pány“ a uveď hlavní fakta.
**Pension pro svobodné pány** Pension pro svobodné pány je český film natočený režisérem Jiřím Krejčíkem v roce 1967 podle divadelní hry Seána O'Caseyho. Situační komedie se odehrává v pensionu, do něhož si svobodný mládenec (Josef Abrhám) tajně přivede svou milenku (Iva Janžurová) a snaží se jí skrýt jednak před přís...
null
Fix the following code to prevent errors from crashing the program.
def foo(a): print(a) foo("hi") foo(1)
def foo(a): """ A function that prints a value. Args: a (any): value to print Returns: nothing """ if isinstance(a, (int, float, str)): print(a) else: print("Error: must be a string, int, or float") if __name__ == '__main__': foo("hi") foo(1)
null
Classify the following collection of HTML tags into four categories.
<ul>, <div>, <span>, <h1>
Block level elements: <div>, <h1> Inline level elements: <ul>,<span> Grouping elements: <ul> Text level elements: <span>
null
null
null
null
Čechy Čechy (, , ) jsou region na západě České republiky. Dříve byly jako království centrem Koruny české. Kořen slova Čech pravděpodobně odpovídá významu člověk. Latinský ekvivalent Bohemia, původně Boiohaemum (doslova „země Bojů“), jenž časem ovlivnil i názvy v jiných jazycích, je odvozen od keltského kmene Bójů, kt...
Čau! tam?
Ahoj! Jak ti můžu pomoct?
null
Stručně shrň článek o tématu „Jan Dziuba“ a uveď hlavní fakta.
**Jan Dziuba** Jan Dziuba (1882 Rybnik – 1938 Siemianowice Śląskie) byl polský národní aktivista v Horním Slezsku, člen Slezského parlamentu. Pocházel z rolnické rodiny. Absolvoval gymnázium v Rybniku a začal pracovat v ocelářství Silesia. Za svojí národní aktivitu byl vyhozen a odešel do města Olkusz. V roce 1905 naš...
null
Napiš SQL: vyber 10 nejnovějších objednávek z tabulky orders.
```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 10; ```
null
null
null
null
HD 108874 c HD 108874 c is a gas giant discovered in 2005 which orbits beyond the star's habitable zone, and receives insolation 15.9% that of Earth. It has minimum mass similar to Jupiter, although since the inclination of the orbit is not known the true mass of this planet could be much greater. The planet is possib...