instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Write a query to find out the maximum salary earned by an employee | SELECT MAX(salary) FROM Employees; | null | |
Take two numbers as input and calculate the sum of them using a Java program. | x = 3 y = 4 | int sum = x + y; System.out.println("The sum of the two numbers is: " + sum); | null |
Write a python program to replace the character ‘e' with the character ‘E' for strings of length more than 5 | text = "Hello world!" | def replace_char(text): if len(text) > 5: return text.replace('e','E') else: return text | null |
Edit the following C code so that an infinite loop is created: | #include <stdio.h> int main() { int i = 0; while(i<10) { printf("%d\n",i); i++; } return 0; } | #include <stdio.h> int main() { int i = 0; while(1) { printf("%d\n",i); i++; } return 0; } | null |
Summarize key facts about „1541 in France“ clearly and accurately. | **1541 in France**
Events from the year 1541 in France Incumbents Monarch – Francis I Events Births Full date missing Pierre Charron, Catholic theologian and philosopher (died 1603) Deaths Full date missing Georges de Selve, scholar and diplomat (born 1508) François II de La Trémoille, nobleman (born 1505) François Gu... | null | |
Create a dictionary (hash) table with the following key-value pairs: | Key1: "a" Value1: 1 Key2: "b" Value2: 2 | myDict = {"a": 1, "b": 2} | null |
Stručně shrň článek o tématu „Gravitační potenciální energie“ a uveď hlavní fakta. | **Gravitační potenciální energie**
Gravitační potenciální energie je jeden z druhů mechanické energie, kterou má těleso v gravitačním poli. Jedná se o druh potenciální energie. Značení Značka: Ep Jednotka SI: joule, značka: J Další jednotky: viz Energie Výpočet Homogenní gravitační pole V homogenním gravitačním poli j... | null | |
Stručně shrň článek o tématu „Novelizace Ústavy České republiky zavádějící přímou volbu prezidenta republiky“ a uveď hlavní fakta. | **Novelizace Ústavy České republiky zavádějící přímou volbu prezidenta republiky**
Novelizace Ústavy České republiky zavádějící přímou volbu prezidenta republiky byla provedena ústavním zákonem č. 71/2012 Sb., který změnil Ústavu České republiky, a to tak, že dosavadní nepřímý způsob volby hlavy státu prostřednictvím ... | null | |
Given a list, remove the duplicates from it. | [1, 2, 3, 1, 4, 2] | [1, 2, 3, 4] | null |
null | null | null | Anthony Coldeway
Anthony W. Coldeway (August 1, 1887 – January 29, 1963) was an American screenwriter who had an extensive career from 1910 through 1954. Although most of his work was on films, he did some writing for television and also was the director of a silent film, entitled Her Great Dilemma, in 1917. He was bo... |
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 | |
Stručně shrň článek o tématu „Petr Sommer“ a uveď hlavní fakta. | **Petr Sommer**
Petr Sommer (30. listopadu 1949 Rakovník – 12. srpna 2023, Praha) byl český historik a archeolog, ředitel Centra medievistických studií Akademie věd České republiky a Univerzity Karlovy v Praze. Odborně se zabýval církevní archeologií a středověkou duchovní kulturou. Život Vystudoval Filozofickou faku... | null | |
Calculate the total number of bits in a single byte. | def bits_in_byte(): return 8 total_bits = bits_in_byte() print(total_bits) # 8 | null | |
Stručně shrň článek o tématu „French Open 2013 – čtyřhra juniorek“ a uveď hlavní fakta. | **French Open 2013 – čtyřhra juniorek**
Obhájcem titulu ve čtyřhře juniorek na pařížském French Open 2013 byl ruský pár Darja Gavrilovová a Irina Chromačovová, který se čtyřhry nezúčastnil. Gavrilovová již nemohla startovat pro věkové omezení a Chromačovová nastoupila do kvalifikace ženské dvouhry, kde byla ve druhém ... | null | |
How would you change the following HTML to add an "alt" attribute to the "img" tag? | <img src="sample.jpg"> | <img src="sample.jpg" alt="Sample Image"> | null |
Stručně shrň článek o tématu „Matematika“ a uveď hlavní fakta. | **Matematika**
Matematika (z řeckého (mathématikos) = milující poznání; (mathéma) = věda, vědění, poznání) je věda zabývající se z formálního hlediska kvantitou, strukturou, prostorem a změnou. Matematika je též popisována jako disciplína, jež se zabývá vytvářením abstraktních entit a vyhledáváním zákonitých vztahů me... | null | |
Summarize key facts about „Nučice (Prague-East District)“ clearly and accurately. | **Nučice (Prague-East District)**
Nučice is a municipality and village in Prague-East District in the Central Bohemian Region of the Czech Republic. It has about 400 inhabitants. History The first written mention of Nučice is from 1422. References Villages in Prague-East District | null | |
Summarize key facts about „PTQL“ clearly and accurately. | **PTQL**
Program Trace Query Language (PTQL) is a language based on relational queries over program traces, in which programmers can write expressive, declarative queries about program behavior. Sources Conference on Object Oriented Programming Systems Languages and Applications archive Proceedings of the 20th annual ... | null | |
Add code to make an API call using a library to a given JSON endpoint and retrieve the data. | API URL: https://example.com/endpoint/data | import requests url = "https://example.com/endpoint/data" response = requests.get(url) data = response.json() | null |
Calculate the maximum of an input array. | mylist = [1, 4, 5, 6, 8, -3] | # Initialize the max max = mylist[0] # Iterate over the list for i in mylist: # Check for bigger value if i > max: # Update the max max = i # Print the max print(max) | null |
Write a class constructor for a Unicorn class with name, color, and age as parameters. | class Unicorn: def __init__(self, name, color, age): self.name = name self.color = color self.age = age | null | |
null | null | null | Pret a Manger
Pret a Manger (prêt à manger is French for ready to eat) is a British sandwich shop franchise chain headquartered in London, United Kingdom and founded in 1983. It is popularly referred to as Pret. As of December 2022, Pret had 434 shops in the UK, including 273 in London, plus three "Veggie Prets", whic... |
Stručně shrň článek o tématu „Kaiser“ a uveď hlavní fakta. | **Kaiser**
Kaiser může být: loď SMS Kaiser (1911) – bitevní loď z první světové války SMS Kaiser (1860) – řadová loď rakouského námořnictva třída Kaiser Franz Joseph I. – třída chráněných křižníků Rakousko-uherského námořnictva SMS Kaiser Karl VI. – rakouský pancéřový křižník Třída Henry J. Kaiser – třída tankerů pomo... | null | |
Build a deep learning model in Python to predict the stock price of a given company. | # import libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # import data data = pd.read_csv('stock_data.csv') # preprocess data X = data.iloc[:,:-1].values y = data.iloc[:,-1].values # split into training set and test set from sklearn.model_selection import train_tes... | null | |
Hello tam? | Ahoj! Jsem tu pro kód, vysvětlení i češtinu. | null | |
In Java, write a method that wraps a given string into a paragraph with each line no longer than the given number of characters. | public static String wrapText(String text, int maxCharsPerLine) { // Create a StringBuilder for formulating the output StringBuilder result = new StringBuilder(); // Break the given text into individual lines, each containing no more than maxCharsPerLine characters String line = ""; int index = 0; while (index < text.l... | null | |
Stručně shrň článek o tématu „Letkis“ a uveď hlavní fakta. | **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... | null | |
Write a basic routine that takes in a JSON string and outputs the longest word found inside. | data = '{"John": 56, "Ann":64, "Victor": 23}' | def get_longest_word(json_string): """Return the longest word found inside the given json_string""" words = [] data = json.loads(json_string) for key,val in data.items(): words.append(key) return max(words, key=len) | null |
Stručně shrň článek o tématu „Dilfirib Kadınefendi“ a uveď hlavní fakta. | **Dilfirib Kadınefendi**
Dilfirib Kadınefendi (1890 Istanbul – 1952 Istanbul) byla pátá manželka osmanského sultána Mehmeda V. Životopis Narodila se v Istanbulu okolo roku 1890 do rodiny Čerkesů. Ve velmi nízkém věku byla darována jako služebná do paláce, kde dostala soukromou výchovu a vzdělání. Byla velmi dobře vych... | null | |
Ukaž čistý kód: sečte čísla v seznamu. Pojmenuj funkci `sum_list`. | ```python def sum_list(xs: list[float]) -> float: return sum(xs) ``` | null | |
Stručně shrň článek o tématu „Juribej (přítok Gydské zátoky)“ a uveď hlavní fakta. | **Juribej (přítok Gydské zátoky)**
Juribej () je řeka v Jamalo-něneckém autonomním okruhu v Ťumeňské oblasti v Rusku. Je dlouhá 479 km. Plocha povodí měří 11 700 km². Průběh toku Teče v místy velmi členitém korytě na Gydském poloostrově. V jejím povodí se nachází velké množství jezer. Ústí do Gydské zátoky Karského mo... | null | |
Stručně shrň článek o tématu „Hlybokaje“ a uveď hlavní fakta. | **Hlybokaje**
Hlybokaje (, – Glubokoje) je město ve Vitebské oblasti v Bělorusku, správní středisko Hlybockého rajónu. K roku 2017 mělo přes devatenáct tisíc obyvatel. Poloha a doprava Hlybokaje leží na západě Vitebské oblasti a od Vitebsku, jejího správního střediska, je vzdáleno zhruba 200 kilometrů západně. Hlyboka... | null | |
Stručně shrň článek o tématu „Natalia Andreiová“ a uveď hlavní fakta. | **Natalia Andreiová**
Natalia Andreiová, provdaná Mărășescuová (* 3. října 1952, Căpreni) je bývalá rumunská atletka, běžkyně, dvojnásobná halová mistryně Evropy v běhu na 1500 metrů.. Sportovní kariéra Na evropském šampionátu v Římě v roce 1974 doběhla čtvrtá v běhu na 3000 metrů. O rok později se stala halovou mistr... | null | |
Summarize key facts about „Belfry (architecture)“ clearly and accurately. | **Belfry (architecture)**
The belfry is a structure enclosing bells for ringing as part of a building, usually as part of a bell tower or steeple. It can also refer to the entire tower or building, particularly in continental Europe for such a tower attached to a city hall or other civic building. A belfry encloses th... | null | |
What are the benefits of using React for web development? | The benefits of using React for web development include increased efficiency, increased modularity, and easier maintenance due to its component-based architecture. React allows for quick loading times and scalability. React also allows developers to create reusable UI components. Finally, React’s large community makes ... | null | |
Stručně shrň článek o tématu „Útok v Carcassonne a Trèbes“ a uveď hlavní fakta. | **Útok v Carcassonne a Trèbes**
Dne 23. března 2018 se v jižní Francii ve městech Carcassonne a Trèbes odehrál teroristický útok. V Carcassonnu pětadvacetiletý Redouane Lakdim francouzsko-marockého původu střelil dva cestující v automobilu, čímž zabil spolucestujícího a vážně zranil řidiče. Automobil následně unesl. N... | null | |
Create a for loop in Python to find the combined length of all the strings in a list. | list = ['Data', 'Science', 'AI'] | total_length = 0 for s in list: total_length += len(s) print(total_length) | null |
Create a SQL query to get all the information about the employees with salary between $50,000 and $75,000. | SELECT * FROM employee WHERE salary BETWEEN 50000 and 75000; | null | |
Stručně shrň článek o tématu „Goethe-Institut“ a uveď hlavní fakta. | **Goethe-Institut**
Goethe-Institut (dříve Goethův či Goetheho institut) je německý obecně prospěšný spolek s hlavním sídlem v Mnichově. Název organizace je odvozen od německého básníka Johanna Wolfganga von Goethe. Historie Institut byl založen v roce 1951 jako nástupnická organizace Německé akademie (Deutsche Akadem... | null | |
Summarize key facts about „Matthew Brady“ clearly and accurately. | **Matthew Brady**
Matthew Brady (1799 – 4 May 1826) was an English-born convict who became a bushranger in Van Diemen's Land (modern-day Tasmania). He was sometimes known as "Gentleman Brady" due to his good treatment and fine manners when robbing his victims. Early life Brady, whose proper name was Bready, was born i... | null | |
null | null | null | Sam Lowe
Sam Lowe (19 July 1867 – 29 March 1947) was an English cricketer. He was a right-handed batsman and a right-arm fast-bowler. He was born and died in Kirkby-in-Ashfield. Lowe made one first-class appearance for Nottinghamshire during the 1894 season, and played Minor Counties cricket for Glamorgan between 1896... |
Write a code to print the Fibonacci series of n terms. | def printFibonacciSeries(n): a, b = 0, 1 for i in range(0, n): print(a) c = a + b a = b b = c printFibonacciSeries(10) | null | |
Ukaž čistý kód: spočítej průměr. Pojmenuj funkci `avg_list`. | ```python def avg_list(xs: list[float]) -> float: return sum(xs) / len(xs) if xs else 0.0 ``` | null | |
Kolik je 13 - 5? | 13 - 5 = 8 | null | |
Summarize key facts about „Lars Behrendt“ clearly and accurately. | **Lars Behrendt**
Lars Behrendt (born 28 September 1973) is a German bobsledder who competed from 1998 to 2002. He won two medals in the four-man event at the FIBT World Championships with a gold in 2000 and a silver in 2001. References Bobsleigh four-man world championship medalists since 1930 FIBT profile 1973 birth... | null | |
Add a method in JavaScript for an object to find the sum of all its elements. | class MyObject { constructor(elements) { this.elements = elements; } } | class MyObject { constructor(elements) { this.elements = elements; } sumElements() { let sum = 0; this.elements.forEach(element => { sum += element; }); return sum; } } | null |
Summarize key facts about „Owjabandan“ clearly and accurately. | **Owjabandan**
Owjabandan (, also Romanized as Owjābandān; also known as Ojābandān) is a village in Nowkand Kola Rural District, in the Central District of Qaem Shahr County, Mazandaran Province, Iran. At the 2006 census, its population was 110, in 29 families. References Populated places in Qaem Shahr County | null | |
null | null | null | Brooks Mountain
Brooks Mountain is the highest peak in the York Mountains range on the Seward Peninsula in the U.S. state of Alaska. It is located in the central part of the Teller Quadrangle, about east of Cape Prince of Wales. It has an elevation of . It has tin ore deposits, and high-grade uranium has also been fou... |
Write a few lines of code in Python that prints out name followed by age. | name: John age: 25 | name = "John" age = 25 print(name + " " + str(age)) | null |
null | null | null | 1890 in France
Events from the year 1890 in France. Incumbents President: Marie François Sadi Carnot President of the Council of Ministers: Pierre Tirard (until 17 March), Charles de Freycinet (starting 17 March) Events 2 January – Steamship Persia wrecked off Corsica: 130 lives lost. 21 February – First Franco-Dahome... |
Write an HTML web page from scratch that displays a list of 10 different CSS colors randomly. | <html> <head> <title>Random Colors</title> <style> .random-color { background-color: #9b024a; } </style> </head> <body> <h1>Random Colors</h1> <ul> <li class="random-color">#9b024a</li> <li class="random-color">#f06f56</li> <li class="random-color">#ffb003</li> <li class="random-color">#37478d</li> <li class="random-co... | null | |
Event listener na button click. | ```javascript document.querySelector("#btn").addEventListener("click", () => { console.log("clicked"); }); ``` | null | |
null | null | null | Coal (disambiguation)
Coal is a sedimentary rock composed mainly of carbon and used as a fossil fuel. Coal may also refer to: Particular types of Coal Anthracite Bituminous coal Lignite Other combustible fuels Charcoal, a similar solid carbon compound also used as a fuel source, frequently shortened to coal Ember, a l... |
Implement `dict_keys` in Python (seřadí klíče slovníku). | ```python def sorted_keys(d: dict) -> list: return sorted(d.keys()) ``` | null | |
Create an R program to find the percentage of males and females in a given dataset. | Table Name: people | male_count <- nrow(people[people$Gender == "Male", ]) female_count <- nrow(people[people$Gender == "Female", ]) total <- nrow(people) male_percentage <- (male_count / total) * 100 female_percentage <- (female_count / total) * 100 print(paste0('Percentage of males:', male_percentage, '%')) print(paste0('Percentage of fe... | null |
Summarize key facts about „Rogerson River“ clearly and accurately. | **Rogerson River**
The Rogerson River is a river of the north Canterbury region of New Zealand's South Island. It flows generally east, reaching the Chatterton River at the town of Hanmer Springs. See also List of rivers of New Zealand References Rivers of Canterbury, New Zealand Rivers of New Zealand | null | |
null | null | null | František Josef Čečetka
František Josef Čečetka (23. dubna 1871 Nové Hrady – 3. června 1942 Praha) byl český učitel a spisovatel. Život Narodil se v rodině Antonína Čečetky (1852), barvíře a rolníka v Nových Hradech a Kateřiny Čečetkové-Truhlářové (1847–1882), svatbu měli 16. 9. 1873. Měl šest sourozenců, žádný z nich... |
Write a function to swap the entries in a list. | [10, 20, 30, 40] | def swap(List): temp = List[0] List[0] = List[3] List[3] = temp return List List = [10, 20, 30, 40] print(swap(List)) | null |
Summarize key facts about „Angel (Sarah Brightman song)“ clearly and accurately. | **Angel (Sarah Brightman song)**
Angel is a song written by Jerry Burns and Sally Herbert sung by English singer-songwriter Sarah Brightman from her eleventh studio album, Dreamchaser. It was first released as the album's lead single in Europe and Mexico as a digital download on October 15, 2012. The song was original... | null | |
Create a class in Python named 'Car' and implement a method that shows the current speed of the car. | class Car(): def __init__(self, speed): self.speed = speed def show_speed(self): print("The current speed is:", self.speed) | null | |
null | null | null | Jacob Grimm
Jacob Ludwig Carl Grimm (4. ledna 1785 Hanau – 20. září 1863 Berlín) byl německý právník, který proslul jako jazykovědec, lexikograf, spoluzakladatel germanistiky jako vědního oboru a sběratel lidových pohádek (spolu s bratrem Wilhelmem Grimmem). Roku 1802 se zapsal na univerzitu v Marburgu, kde studoval p... |
Summarize key facts about „John Forrester-Clack“ clearly and accurately. | **John Forrester-Clack**
John Forrester-Clack is an Australian artist who won the 2009 Capital Chemist Art Prize (formerly the Brindabella Art Prize) and was a finalist in the 2011 and 2012 Dobell Prize. Clack's signature is the sign of the cross plus the word Amen, sometimes accompanied by a small heart-shaped emblem... | null | |
Suggest a valid Python code to print unique characters of a given string | def print_unique(s): output = set() for char in s: if char not in output: output.add(char) print(char) | null | |
Describe the concept of text mining. | Text mining is the process of extracting valuable information from textual data, typically through the application of natural language processing and machine learning algorithms. Text mining can identify hidden patterns and relationships in text, including key words, topics, and complex themes, by analyzing sentence st... | null | |
Stručně shrň článek o tématu „Christoforus“ a uveď hlavní fakta. | **Christoforus**
Christoforus byl vzdoropapežem od října 903 do ledna 904. Až do první poloviny 20. století byl ve většině seznamů papežů uváděn jako papež, poté byl vyřazen s ohledem na způsob, jakým se zmocnil úřadu. Život O jeho životě toho není mnoho známo. Měl být rodákem z Říma a jeho otec se jmenoval Lev. Byl k... | null | |
Fix the Python code below to make the script work. | import json data = { "name": "John Doe", "age": 20 } with open("data.txt", "w") as outfile: json.dump(data, outfile) | import json data = { "name": "John Doe", "age": 20 } with open("data.txt", "w") as outfile: json.dump(data, outfile, indent=4) | null |
Retrieve the third item from a linked list. | def get_third_item(linked_list): curr_node = linked_list for i in range(2): curr_node = curr_node.next # Moves onto the third item. return curr_node.data # Returns the data of the third item. | null | |
null | null | null | 1953 Harvard Crimson football team
The 1953 Harvard Crimson football team was an American football team that represented Harvard University during the 1953 college football season. In their fourth year under head coach Lloyd Jordan, the Crimson compiled a 6–2 record and outscored opponents 146 to 78. Richard J. Clasby... |
Create an array of length 15 containing numbers divisible by 3 up to 45. | arr = [3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45] | null | |
Summarize key facts about „Mannargudi Sambasiva Bhagavatar“ clearly and accurately. | **Mannargudi Sambasiva Bhagavatar**
Mannargudi Sambasiva Bhagavathar (also spelt Bagavathar) (1912–2004) was a Carnatic musician, musicologist, Harikatha exponent and composer. He served Carnatic music for over seven decades. He was a disciple of Maharajapuram Viswanatha Iyer in music and Madurai Narayana Bhagavatar a... | null | |
null | null | null | Nits
Nits (až do roku 1992 The Nits) je nizozemská popová hudební skupina. Vznikla 1974 v Amsterdamu. Profil Počet členů skupiny se měnil. V roce 2013 byli členy skupiny zpěvák a textař Henk Hofstede, Rob Kloet (bicí) a Robert Jan stips (klávesy). Nejvetším úspěchem bylo album In the Dutch Mountains (v holandských hor... |
Summarize key facts about „Ganga Devi (painter)“ clearly and accurately. | **Ganga Devi (painter)**
Ganga Devi (1928 – 21 January 1991) was an Indian painter, considered by many as one of the leading exponents of Madhubani painting tradition. She is credited with popularizing the Madhubani painting outside India. She was born in 1928 in Mithila in the Indian state of Bihar in a Kayastha fami... | null | |
CSS grid 3 sloupce. | ```css .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } ``` | null | |
Compute the number of ways for a host to select 3 items from a list of 8 options. | def compute_combination(n, r): """ Compute the number of ways for a host to select 'r' items from a list of 'n' options. Parameters ---------- n : int The total number of items r : int The number of items to select Returns ------- num : int The number of ways to select """ num = 1 # Calculate combination for i in range... | null | |
null | null | null | HD 20782 b
HD 20782 b is an extrasolar planet located approximately 117 light-years away in the constellation of Fornax, orbiting the star HD 20782. This planet orbits in the most eccentric orbit known (as of November 2012), with a semi-major axis of 1.36 AU, and eccentricity e=0.97+/-0.01. As a result, it also has on... |
Write a function in JavaScript that takes an integer n and returns the nth Fibonacci number. | function Fibonacci(n) { if (n <= 1) return n; return Fibonacci(n-1) + Fibonacci(n-2); } | null | |
Co je proměnná? | Proměnná je pojmenované místo pro hodnotu v paměti, např. `x = 10`. | null | |
Kolik je 16 × 9? | 16 × 9 = 144 | null | |
Napiš skript, který spočítá řádky ve všech .py souborech ve složce. | ```python from pathlib import Path def count_py_lines(root: str = ".") -> int: total = 0 for p in Path(root).rglob("*.py"): total += sum(1 for _ in p.open(encoding="utf-8", errors="ignore")) return total if __name__ == "__main__": print(count_py_lines()) ``` | null | |
Create a function to generate a list of prime numbers between 2 and n. | def prime_numbers(n): prime_nums = [] for num in range(2, n + 1): if num > 1: for i in range(2, num): if (num % i) == 0: break else: prime_nums.append(num) return prime_nums | null | |
Ahoj tam? | Zdravím! Napiš úkol — rád pomůžu. | null | |
Čau! | Ahoj! S čím pomoct? | null | |
Summarize key facts about „Cristache Gheorghiu“ clearly and accurately. | **Cristache Gheorghiu**
Cristache Gheorghiu (; born May 2, 1937) is a Romanian writer, painter, mechanical engineer and computer scientist. In literature, Gheorghiu is best known as an essayist. An engineer by profession, he is known for his research on cybernetics. In the latter part of his life Gheorghiu has devoted... | null | |
Write a Python function `dict_keys` that seřadí klíče slovníku. | ```python def sorted_keys(d: dict) -> list: return sorted(d.keys()) ``` | null | |
Kolik je 10 - 2? | 10 - 2 = 8 | null | |
null | null | null | Ashique Ali Khan
Ustad Ashique Ali Khan (1948–1999) was a Sarangi player, born on 28 October 1948 in Kirana, Uttar Pradesh to a family of Sarangi exponents. He belongs to the Kirana Gharana of Indian Classical Music. At the age of ten, he attained the first position in vocal music and in playing the harmonium, in a co... |
Co je latency? | Latence je zpoždění — jak dlouho trvá, než přijde odpověď. | null | |
Summarize key facts about „Milorad M. Drachkovitch“ clearly and accurately. | **Milorad M. Drachkovitch**
Milorad M. Drachkovitch (8 November 1921 – 16 June 1996) was a political scientist of Serbian origin. He was born in Belgrade as the posthumous son of Milorad Drašković, Minister of the Interior in the Kingdom of Serbs, Croats, and Slovenes, who had been assassinated. A liberal Serbian nati... | null | |
Create a function that returns the longest word in a sentence. | sentence = "This is a sentence with lots of words." | def get_longest_word(sentence): words = sentence.split() longest_word = "" for word in words: if len(word) > len(longest_word): longest_word = word return longest_word | null |
null | null | null | Francisco González (athlete)
Francisco González Suaste (born 2 May 1917) was a Mexican hammer thrower who competed in the 1948 Summer Olympics. References External links 1917 births Possibly living people 20th-century Mexican people Mexican male hammer throwers Olympic athletes for Mexico Athletes (track and field) at... |
Transform the following Ruby code into its JavaScript equivalent. | books = ["Learn Ruby", "Learn JavaScript"] books.each do |book| puts book end | var books = ["Learn Ruby", "Learn JavaScript"]; books.forEach(function(book) { console.log(book); }); | null |
null | null | null | Guy Lafond
Guy Lafond was a research scientist for over 30 years with Agriculture and Agri-Food Canada at the Indian Head Research Farm in Saskatchewan. He was instrumental in establishing the Indian Head Agricultural Research Foundation (IHARF) in the early 1990s and had a major impact on cropping practices and soil ... |
Generate a dictionary with the name of the person as key and the cower letter of their name as value. | names = ['John', 'Max', 'Alice'] | result = {} for name in names: # get the first letter from the name first_letter = name[0] result[name] = first_letter print(result) # {'John': 'J', 'Max': 'M', 'Alice': 'A'} | null |
Spočítej: 11 + 13 = ? | 11 + 13 = 24 | null | |
Stručně shrň článek o tématu „Nerovnoměrný přímočarý pohyb“ a uveď hlavní fakta. | **Nerovnoměrný přímočarý pohyb**
Nerovnoměrný přímočarý pohyb je pohyb, u kterého směr rychlosti zůstává stejný (trajektorií je přímka nebo část přímky), ale velikost rychlosti se mění. Jestliže se velikost rychlosti mění s časem přímo úměrně, pak se jedná o pohyb rovnoměrně zrychlený, jestliže závislost rychlosti na ... | null | |
Summarize key facts about „Tadeusz Glimas“ clearly and accurately. | **Tadeusz Glimas**
Tadeusz Glimas (17 February 1925 – 13 May 1969) was a Polish footballer. He played in four matches for the Poland national football team from 1950 to 1952. He was also part of Poland's squad for the football tournament at the 1952 Summer Olympics, but he did not play in any matches. References 1925 ... | null | |
Create a function in TypeScript that takes two strings of equal length and returns the number of characters which match at the same position in the strings. | "abcdefg", "hijklmn" | function countMatchingChar(str1: string, str2: string): number { let count = 0; if(str1.length != str2.length) { return -1; // handle unequal lengths } for(let i = 0; i < str1.length; i++) { if(str1.charAt(i) === str2.charAt(i)) { count++; } } return count; } | null |
Generate a classification network in a deep learning framework. | import tensorflow as tf from tensorflow.keras.models import Sequential from tensorflow.keras.layers import Dense, Activation model = Sequential() model.add(Dense(64, input_dim = 8)) model.add(Activation('relu')) model.add(Dense(16)) model.add(Activation('sigmoid')) model.add(Dense(2)) model.add(Activation('softmax')) m... | null | |
Stručně shrň článek o tématu „Frekvence“ a uveď hlavní fakta. | **Frekvence**
Frekvence (též kmitočet) je fyzikální veličina, která udává počet opakování periodického děje za daný časový úsek. Například v obvodu střídavého proudu takto označujeme počet kmitů napětí či proudu za jednotku času. Historie Slovo frekvence pochází z latinského slova frequentia. Český pojem kmitočet roku... | null | |
Kolik je 12 × 9? | 12 × 9 = 108 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.