instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Summarize key facts about „National Voluntary Guidelines on Social, Environmental and Economic Responsibilities of Business“ clearly and accurately. | **National Voluntary Guidelines on Social, Environmental and Economic Responsibilities of Business**
India's National Voluntary Guidelines on Social, Environmental and Economic Responsibilities of Business (NVGs) were released by the Ministry of Corporate Affairs (MCA) in July 2011 by Mr. Murli Deora, the former Honou... | null | |
Develop an algorithm in Java to compute the Fibonacci sequence | static int Fibonacci(int a) { if (a <= 1) return a; return Fibonacci(a - 1) + Fibonacci(a - 2); } | null | |
Stručně shrň článek o tématu „Regulace (technika)“ a uveď hlavní fakta. | **Regulace (technika)**
Regulace je proces automatického udržování určité veličiny (regulovaná veličina) na stanovené hodnotě nebo hodnotách (referenční nebo požadovaná hodnota). Regulace se objevuje v nejrůznějších systémech, u nichž dochází k interakci s okolím (v přírodě, řídicí technice, ve společnosti). Automatic... | null | |
Create a JavaScript code to represent a double-linked list | // Create a class Node class Node { constructor(value) { this.value = value; this.next = null; this.prev = null; } } // Create a class LinkedList class DoublyLinkedList { constructor() { this.head = null; this.tail = null; this.length = 0; } } | null | |
Write a query in MySQL that returns all unique values of a given column. | Table name: student Column: gender | SELECT DISTINCT gender FROM student; | null |
Perform an insertion sort on the given list. | List: [9, 5, 4, 8, 6] | def insertionSort(arr): # Traverse through 1 to len(arr) for i in range(1, len(arr)): key = arr[i] # Move elements of arr[0..i-1], that are # greater than key, to one position ahead # of their current position j = i-1 while j >= 0 and key < arr[j] : arr[j + 1] = arr[j] j -= 1 arr[j + 1] = key # Driver code arr = [9, 5,... | null |
Summarize key facts about „The Pirates of the Mississippi“ clearly and accurately. | **The Pirates of the Mississippi**
The Pirates of the Mississippi (German: Die Flußpiraten vom Mississippi) is a Western film directed by Jürgen Roland and starring Hansjörg Felmy, Brad Harris and Sabine Sinjen. A Eurowestern, it was a co-production between West Germany, France and Italy. Based on the 1847 novel by Fr... | null | |
Summarize key facts about „Bamasi“ clearly and accurately. | **Bamasi**
Bamasi (, also Romanized as Bāmasī) 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 105, in 31 families. References Populated places in Ramsar County | null | |
Summarize key facts about „The Jack Wilson Quartet featuring Roy Ayers“ clearly and accurately. | **The Jack Wilson Quartet featuring Roy Ayers**
The Jack Wilson Quartet featuring Roy Ayers is an album by American jazz pianist Jack Wilson recorded for the Atlantic label and released in 1963. Reception AllMusic awarded the album 3 stars. Track listing All compositions by Jack Wilson except as indicated "Corcovado" ... | null | |
Create a function that creates a tuple of the given arguments and returns the tuple. | a="A" b="B" | def create_tuple(a, b): return (a, b) | null |
Napiš 3 tipy na produktivitu při programování. | 1) Rozděl problém na malé kroky. 2) Piš testy nebo aspoň rychlé ověření. 3) Commituj často a pojmenovávej změny srozumitelně. | null | |
Create a Perl regular expression to verify if a given string is a valid email address. | if ($string =~ m/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/) { print "Valid email address\n"; } | null | |
Write an XPATH expression to find the text "Welcome" in an HTML document. | <div> <h1>Welcome</h1> <p>Hello World!</p> </div> | //h1[contains(text(), "Welcome")] | null |
Kdy jsi byl natrénován / dotrénován? | Moje poslední dotrénování (fine-tune) proběhlo 23. července 2026 (2026-07-23). Základní znalosti mám z předchozího předtrénování base modelu. | null | |
Stručně shrň článek o tématu „Kostel svatého Karla Boromejského“ a uveď hlavní fakta. | **Kostel svatého Karla Boromejského**
Kostelů zasvěcených Karlu Boromejskému je více: v Praze Kostel svatého Karla Boromejského (Malá Strana) – v areálu Nemocnice Milosrdných sester sv. Karla Boromejského (dříve Pod Petřínem) Kostel svatého Karla Boromejského a Panny Marie – zrušený, součást Vlašského špitálu, Malá St... | null | |
Suggest a solution to the following problem: Write a program to sort a list of strings in alphabetical order. | list_of_strings = ['banana', 'apple', 'orange', 'kiwi'] | list_of_strings.sort() # Sorts the list in alphabetical order | null |
Summarize key facts about „Luca Turilli (band)“ clearly and accurately. | **Luca Turilli (band)**
Luca Turilli (also referred to as the Luca Turilli Band) was the self-named German symphonic power metal musical project of Italian musician Luca Turilli, originally assembled in 1999. History The band was founded by Luca Turilli, guitarist of Rhapsody (now called Rhapsody of Fire), with the in... | null | |
Explain the purpose of a static method in a Python class | A static method is a method that is bound to a class rather than an object. It does not require an instance of the class to be created in order to be called, and it does not have access to the attributes or methods of an instance of that class. Static methods are usually used to provide methods for manipulation of clas... | null | |
Write a code that takes a list as an input and returns the elements in reverse order | ['apple', 'banana', 'cherry'] | def reverse_list(input_list): reversed_list = [] for i in range(len(input_list)-1,-1,-1): reversed_list.append(input_list[i]) return reversed_list | null |
Write Kotlin code for a hello world. | I don't cover Kotlin. I can do Python, JavaScript, HTML, or PHP instead. | null | |
Co je commit? (stručně) | Commit je uložený snímek změn v Gitu s popisem, co a proč se změnilo. | null | |
Stručně shrň článek o tématu „Topfreedom“ a uveď hlavní fakta. | **Topfreedom**
Topfreedom je sociální hnutí v některých severoamerických zemích, usilující o uznání práva žen a dívek chodit „nahoře bez“ (tj. nahé od pasu nahoru) na veřejnosti tam, kde takto mají právo chodit muži a chlapci. Hnutí topfreedom se vyhýbá označení „nahoře bez“ a dává raději přednost výrazu „topfree.“ Me... | null | |
Create an array in JavaScript to store the coordinates of a rectangle. | const coordinates = [ {x: 10, y: 10}, {x: 20, y: 20}, {x: 10, y: 20}, {x: 20, y: 10} ]; | null | |
Kolik je 21 - 3? | 21 - 3 = 18 | null | |
null | null | null | Timmy Trumpet
Timmy Trumpet vlastním jménem Timothy Jude Smith (* 9. června 1982, Sydney) je australský DJ a hudební producent. Jeho popularita v posledních letech rychle roste, zatímco v roce 2016 se v anketě TOP 100 DJs magazínu DJ mag, kde lidé hlasují o svých nejoblíbenějších DJs, umístil na 75. místě, v TOP 100 D... |
Using the given data point, train a linear regression model. | [4, 7], [2, 5], [3, 6] | import numpy as np X = np.array([[4,7], [2,5], [3,6]]) y = np.array([7, 5, 6]) from sklearn.linear_model import LinearRegression model = LinearRegression() model.fit(X, y) | null |
null | null | null | Betlémská
Betlémská ulice na Starém Městě v Praze spojuje Smetanovo nábřeží a Betlémské náměstí. Nazvána je podle nedaleké Betlémské kaple na Betlémském náměstí postavené v letech 1391-94. Na čísle 4 je nejstarší střední průmyslová škola v České republice, celým názvem Střední průmyslová škola strojnická, škola hlavní... |
How to get the size of a dictionary? | len(dictionary) | null | |
Summarize key facts about „Tulsipur (disambiguation)“ clearly and accurately. | **Tulsipur (disambiguation)**
Tulsipur is a city in Uttar Pradesh, India. Tulsipur may also refer to: Places in India Tulsipur, Mainpuri, a village in Uttar Pradesh Places in Nepal Tulsipur, Dang Tulsipur, Siraha Entities named after Tulsipur Tulsipur State, a former principality based in Tulsipur Tulsipur Assembly co... | null | |
Summarize key facts about „T. Y. McGill“ clearly and accurately. | **T. Y. McGill**
Torrone "T. Y." McGill Jr. (born November 23, 1992) is an American football nose tackle for the San Francisco 49ers of the National Football League (NFL). He played college football at NC State and signed with the Seattle Seahawks as an undrafted free agent in 2015. McGill has since been a member of s... | null | |
Write a JSON string containing a list of three employee names. | {"employees": ["John", "Mike", "Sarah"]} | null | |
Write a code to create an object using a class constructor having attributes given in a dictionary. | attributes = {'name': 'John', 'age': 20, 'gender': 'M', 'hobbies': ['books', 'sports']} | class Person: def __init__(self, attributes): self.name = attributes['name'] self.age = attributes['age'] self.gender = attributes['gender'] self.hobbies = attributes['hobbies'] person = Person(attributes) | null |
Stručně shrň článek o tématu „Gustáv Plavec“ a uveď hlavní fakta. | **Gustáv Plavec**
Gustáv Plavec (4. dubna 1904 – 5. listopadu 1971) byl slovenský evangelický farář, spisovatel a publicista. Byl redaktorem časopisu evangelické mládeže Prameň. Slovenští protestantští duchovní Slovenští spisovatelé Narození v roce 1904 Úmrtí v roce 1971 Muži | null | |
Write a JavaScript program to validate the given input against a set of rules. | Rules: Length should be equal to 7 Input = 'example' | let input = 'example'; if (input.length === 7) { console.log('Input is valid'); } else { console.log('Input is not valid'); } | null |
Reverse a given list of strings. | ['first', 'second', 'third'] | ['third', 'second', 'first'] | null |
Describe a method for sorting a list of integers using selection sort. | list = [3, 6, 8, 9, 5] | def selection_sort(list): # Traverse through all array elements for i in range(len(list)): # Find the minimum element in remaining # unsorted array min_idx = i for j in range(i+1, len(list)): if list[min_idx] > list[j]: min_idx = j # Swap the found minimum element with # the first element list[i], list[min_idx] = list[... | null |
Summarize key facts about „I Prefer the Moonlight“ clearly and accurately. | **I Prefer the Moonlight**
I Prefer the Moonlight is the twentieth studio album by American country music singer Kenny Rogers. It reached #18 on the charts. Though the album only reached #163 in the Billboard 200.It contained three top five singles: the title cut and the grammy-winning duet with Ronnie Milsap, "Make N... | null | |
Create a JavaScript code that takes a number as input and returns its factorial. | num = 5 | """ Create a JavaScript code that takes a number as input and returns its factorial. Input: num = 5 """ function factorial(num) { if (num === 0) { return 1; } else { return num * factorial(num-1); } } console.log(factorial(5)) | null |
Design an algorithm in Python to retrieve all elements in a given array that occur only once. | def singleOccurence(arr): ans = [] for i in range(len(arr)): count = 0 for j in range(len(arr)): if arr[i] == arr[j]: count+=1 if count == 1: ans.append(arr[i]) return ans | null | |
Summarize key facts about „Nosokinetics“ clearly and accurately. | **Nosokinetics**
Nosokinetics is the science/subject of measuring and modelling the process of care in health and social care systems. Nosokinetics brings together the Greek words for noso: disease and kinetics: movement. Black box models are currently used to plan changes in health and social care systems. These inpu... | null | |
Zdravím tam? | Ahoj! Co potřebuješ vyřešit? | null | |
Summarize key facts about „List of awards and nominations received by Sheryl Crow“ clearly and accurately. | **List of awards and nominations received by Sheryl Crow**
Sheryl Crow is an American singer-songwriter. She has released nine studio albums: Tuesday Night Music Club (1993), Sheryl Crow (1996), The Globe Sessions (1998), C'mon, C'mon (2002), Wildflower (2005), Detours (2008), Home for Christmas (2008), 100 Miles from... | null | |
Stručně shrň článek o tématu „Královské hrobky dynastie Čoson“ a uveď hlavní fakta. | **Královské hrobky dynastie Čoson**
Královské hrobky dynastie Čoson slouží jako místo odpočinku příslušníků tohoto panovnického korejské rodu. Z dynastie Čoson pochází 27 korejských panovníků, kteří se na trůně vystřídali mezi roky 1392 a 1910. V souhrnu čítá tato skupina celkem 42 hrobek (+ přilehlé stavby). Čtyřicet... | null | |
Co je IDE? | IDE je vývojové prostředí s editorem, debuggerem a nástroji (VS Code, PyCharm). | null | |
Using the code snippet given below, add a class called contactForm to the HTML form. | <form action="/contact.php" id="contactForm"> <input type="text" name="name"> <input type="email" name="email"> <input type="submit" value="Submit"> </form> | <form action="/contact.php" id="contactForm" class="contactForm"> <input type="text" name="name"> <input type="email" name="email"> <input type="submit" value="Submit"> </form> | null |
Write a function to calculate the hypotenuse of a right triangle when passed two sides (lenghts) of the triangle | side1 = 4, side2 = 3 | def calculate_hypotenuse(side1, side2): hypotenuse = (side1 ** 2 + side2 ** 2) ** 0.5 return hypotenuse | null |
Kolik je 24 - 6? | 24 - 6 = 18 | null | |
Describe three ways to optimize a given database. | Three ways to optimize a database are database normalization, indexing, and partitioning. Database normalization involves restructuring a database schema into multiple tables and establishing referential integrity. Indexing is a technique used to speed up the retrieval of data from a table. Partitioning, also known as ... | null | |
Create a Rails application with a user sign up with name, email and password. | rails new AppName cd AppName # Add devise for user auth rails g devise:install # Generate a model for the user rails g devise user username email password # Create a database and migrate rake db:create db:migrate # Add routes for the login & signup Rails.application.routes.draw do devise_for :users end | null | |
Čau | Ahoj! Jsem tu pro kód, vysvětlení i češtinu. | null | |
null | null | null | Genoa CFC
Genoa Cricket and Football Club, commonly referred to as Genoa (), is a professional football club based in Genoa, Liguria, Italy. The team competes in the Serie A, the top division of the Italian football league system. Established in 1893, Genoa is Italy's oldest football team, and the oldest Italian footb... |
Shrň v 2 větách, co je umělá inteligence. | Umělá inteligence jsou systémy, které se učí vzory z dat a řeší úlohy jako text, obraz nebo rozhodování. Dnes často běží na neuronových sítích trénovaných na velkých korpusech. | null | |
Write a HTML code to create a table with two columns, one for the name of a person and the other for their address. | <table> <thead> <tr> <th>Name</th> <th>Address</th> </tr> </thead> <tbody> <tr> <td>John Doe</td> <td>123 Main Street</td> </tr> <tr> <td>Jane Doe</td> <td>456 South Ave</td> </tr> </tbody> </table> | null | |
Summarize key facts about „Complete Convenient“ clearly and accurately. | **Complete Convenient**
Complete/Convenient is a 2013 novel by Indian author Ketan Bhagat, an ex-presenter with Indian broadcaster Doordarshan. The book was published by Srishti publications. Complete/Convenient focuses on the life an emotional Non-Resident Indian named Kabir, who faces new challenges when he marries ... | null | |
Stručně shrň článek o tématu „Německý dvojvrkočatý bublák“ a uveď hlavní fakta. | **Německý dvojvrkočatý bublák**
Německý dvojvrkočatý bublák je plemeno holuba domácího původem z Německa. Jedná se v podstatě o místní ráz dvojvrkočatého rousného bubláka, kam náleží také bublák anglický, drážďanský či bernburský bublák a také bublák český. Rozdíly mezi těmito plemeny jsou jen velmi malé. V České repu... | null | |
Summarize key facts about „2013–14 Fortuna Düsseldorf season“ clearly and accurately. | **2013–14 Fortuna Düsseldorf season**
The 2013–14 Fortuna Düsseldorf season is the 119th season in the club's football history. Review and events Summer window activity Mike Büskens was announced as the new head coach of Fortuna Düsseldorf on 4 June. Michael Rensing and Ben Halloran officially transferred to Fortuna D... | null | |
Compute the most frequent character from the following string. | Codepen | 'e' is the most frequent character in the given string. | null |
What is the purpose of declaring an enum in Java? | The purpose of declaring an enum in Java is to clearly identify a set of related constants that can be tracked. Enums are used to define a special type that contains a fixed set of constants. Enums provide type safety and make the code more self-documenting. They also make it easier for the compiler to check for correc... | null | |
Summarize key facts about „Samuil Dudin“ clearly and accurately. | **Samuil Dudin**
Samuil Martynovich Dudin (, 1863–1929) was an ethnographer, photographer, artist and explorer. He was a founder of the Ethnographical Department of the Russian Museum in St. Petersburg and a member of several expeditions. Early life Dudin was born in 1863 in Rovno in Kherson District in the Southern U... | null | |
Create a MySQL query to find the employees with the best rating during their last review. | SELECT * FROM Employees WHERE Rating IN (SELECT MAX(Rating) FROM Reviews WHERE ReviewDate = (SELECT MAX(ReviewDate) FROM Reviews) GROUP BY EmployeeID) ORDER BY Rating DESC; | null | |
Stručně shrň článek o tématu „Filozofie“ a uveď hlavní fakta. | **Filozofie**
Filozofie (ve stylově příznakové podobě také filosofie, původem z řeckého φιλοσοφία, filosofía, „láska k moudrosti“) je systematické, racionální a kritické studium obecných a základních otázek, jako jsou otázky existence, rozumu, poznání, hodnot, mysli a jazyka. Tyto otázky jsou často předkládány jako pr... | null | |
Retrieve all the values from the nested dictionary. | data_dict = { 'key1': { 'inner_key1': "1", 'inner_key2': "2" }, 'key2': { 'inner_key1': "3", 'inner_key2': "4" } } | for key1_value in data_dict.values(): for (inner_key1, inner_key2) in key1_value.items(): print(inner_key1, inner_key2) | null |
Umíš TypeScript? | TypeScript beru jako nadstavbu JS — jednoduché typy ano, ale nejsem TS specialista. Spolehlivě: JavaScript, Python, HTML, PHP. | null | |
Create a KMP algorithm in Python to find a pattern in a given text. | Text: abcabdababd Pattern:abd | def KMPSearch(pat, txt): M = len(pat) N = len(txt) # create lps[] that will hold the longest prefix suffix # values for pattern lps = [0]*M j = 0 # index for pat[] # Preprocess the pattern (calculate lps[] array) computeLPSArray(pat, M, lps) i = 0 # index for txt[] while i < N: if pat[j] == txt[i]: i += 1 j += 1 if j =... | null |
Stručně shrň článek o tématu „Dynamický vztlak“ a uveď hlavní fakta. | **Dynamický vztlak**
Dynamický vztlak je síla, která nadnáší těleso při pohybu v plynu či kapalině. Vztlak je nezbytně důležitý pro létání – během letu působí na křídlo a letadlo tak udržuje nad zemí ve vzduchu. Velikost aerodynamické vztlakové síly závisí na ploše křídla, tvaru křídla, profilu křídla, úhlu křídla vůč... | null | |
Summarize key facts about „Natural Falls State Park“ clearly and accurately. | **Natural Falls State Park**
Natural Falls State Park is a state-owned park in the Ozarks, in Delaware County, Oklahoma. It lies along U.S. Highway 412, near the Arkansas-Oklahoma state line. The property was privately-owned and known as Dripping Springs until 1990, when the state bought it. The previous owners had al... | null | |
Stručně shrň článek o tématu „Akustika“ a uveď hlavní fakta. | **Akustika**
Akustika je rozsáhlý vědní obor, zabývající se vznikem zvukového vlnění, jeho šířením, vnímáním zvuku sluchem a přenosu prostorem až po vnímání lidskými smysly. Má celou řadu poddisciplín, např. hudební akustika zkoumá fyzikální základy hudby, hudebních nástrojů a prostorů, stavební akustika zvukové jevy ... | null | |
null | null | null | Juliánský kalendář
Juliánský kalendář je kalendář, který v roce 46 př. n. l. s platností od 45 př. n. l. zavedl Julius Caesar. Tento kalendář byl reformou starořímského kalendáře a byl koncipován jako sluneční kalendář s délkou roku 365 dní a každým čtvrtým přestupným rokem o 366 dnech. Drobná úprava kalendáře (změna ... |
Stručně shrň článek o tématu „Rozewie“ a uveď hlavní fakta. | **Rozewie**
Rozewie (kašubsky Blëza, německy Rixhöft) je malé sídlo na stejnojmenném pevninském výběžku severního pobřeží Polska do Baltského moře. Hrot mysu na konci tohoto výběžku byl dříve mylně považován za nejsevernější bod Polska. Historie Název místa pochází pravděpodobně ze starogermánského slova Resenhaust, v... | null | |
Summarize key facts about „Novation Companies“ clearly and accurately. | **Novation Companies**
Novation Companies, Inc. (formerly Novastar Financial, Inc.) owns and operates early-stage businesses in the technology-enabled services industry. It trades under the symbol NOVC. History Novation Companies, Inc., (NOVC) was founded as NovaStar Financial, Inc., a Kansas City-based residential mo... | null | |
Summarize key facts about „Hexomino“ clearly and accurately. | **Hexomino**
A hexomino (or 6-omino) is a polyomino of order 6, that is, a polygon in the plane made of 6 equal-sized squares connected edge-to-edge. The name of this type of figure is formed with the prefix hex(a)-. When rotations and reflections are not considered to be distinct shapes, there are 35 different free h... | null | |
Stručně shrň článek o tématu „Josef Křičenský“ a uveď hlavní fakta. | **Josef Křičenský**
Josef Křičenský (10. října 1871 Nový Bydžov – 25. března 1930 Prostějov), byl český dramatik, režisér, herec a fotograf. Život Narodil se v Novém Bydžově v rodině důchodního Jana Křičenského. Po absolvování obecné školy studoval v letech 1882–1887 na gymnáziu v Novém Bydžově. Během studia se aktivn... | null | |
Summarize key facts about „Bertel Thorvaldsen with the Statue of Hope“ clearly and accurately. | **Bertel Thorvaldsen with the Statue of Hope**
Bertel Thorvaldsen with the Statue of Hope is a self-portrait by Danish sculptor Bertel Thorvaldsen, created as a plaster model in his studio at Nysø Manor in 1839 and executed in marble posthumously by Herman Wilhelm Bissen in 1859. In 1894, a bronze cast was erected in ... | null | |
Stručně shrň článek o tématu „Boz Scaggs“ a uveď hlavní fakta. | **Boz Scaggs**
Bob Scaggs (* 8. června 1944, Canton, Ohio) je americký zpěvák, skladatel a kytarista. Byl populární v sedmdesátých letech a také měl v Americe několik Top 20 hitů. Boz je stále aktivní a v současnosti stále pořádá turné. Mezi jeho největší hity patří komerčně uznávané album Silk Degrees a písně jako "L... | null | |
Create a tuple of strings. | my_tuple = ("Apple", "Banana", "Orange") | null | |
Stručně shrň článek o tématu „Srpen 2009“ a uveď hlavní fakta. | **Srpen 2009**
1. srpna Ve věku 76 let zemřela bývalá filipínská prezidentka Corazon Aquinová, vůdkyně hnutí, které v roce 1986 nenásilně svrhlo diktaturu Ferdinanda Marcose. 5. srpna Íránský prezident Mahmúd Ahmadínežád složil v Teheránu před budovou parlamentu přísahu a zahájil své druhé funkční období. Ve věku 80 l... | null | |
ahoj | Ahoj! Napiš úkol — klidně česky nebo anglicky, případně kód v Python/JS/HTML/PHP. | null | |
Stručně shrň článek o tématu „Národní parky v Polsku“ a uveď hlavní fakta. | **Národní parky v Polsku**
Polsko má celkem 23 národních parků, nejstarší z nich je Białowieski Park Narodowy na východě Polska, vyhlášený v roce 1947 a naopak zatím nejmladší je Národní park Ústí Warty na západě Polska, vyhlášený roku 2001. Největším polským národním parkem je Biebrzański národní park na severovýchod... | null | |
Stručně shrň článek o tématu „Maxime Vachier-Lagrave“ a uveď hlavní fakta. | **Maxime Vachier-Lagrave**
Maxime Vachier-Lagrave [vašijé lagráv] (* 21. října 1990 Nogent-sur-Marne) je francouzský šachista. Jeho nejvyšší hodnocení Elo je 2819 bodů (šestý nejlepší hráč všech dob). Titul mezinárodního velmistra získal v necelých patnácti letech. V roce 2009 vyhrál mistrovství světa juniorů v šachu,... | null | |
Find the total cost of the given items. | items: [('apple', 2.5), ('mango', 3.5)} | total_cost = 0 for item in items: price = item[1] total_cost += price print(total_cost) | null |
null | null | null | Kostel svatého Michaela archanděla (Vísky)
Kostel svatého Michala ve Vískách pochází z přelomu 12. a 13. století. Jde o farní kostel farnosti Vísky u Letovic. Popis Jedná se o jednolodní, orientovanou, podélnou stavbu, která vznikla – jak již bylo uvedeno výše – ve 13. století a je tudíž románského původu. Dnes však v... |
Calculate the area of a square with each side equal to 3 inches | The area of the square is 9 square inches. | null | |
Define a Bash function with name 'times2' which takes one parameter and prints the value doubled. | times2 () { value=$1 echo "$value*2 = $(($value*2))" } | null | |
Create a program in python that sorts a given list. | def bubbleSort(arr): n = len(arr) # Traverse through all array elements for i in range(n): # Last i elements are already in place for j in range(0, n-i-1): # traverse the array from 0 to n-i-1 # Swap if the element found is greater # than the next element if arr[j] > arr[j+1] : arr[j], arr[j+1] = arr[j+1], arr[j] # Dri... | null | |
Napiš SQL: vyber 2 nejnovějších objednávek z tabulky orders. | ```sql SELECT * FROM orders ORDER BY created_at DESC LIMIT 2; ``` | null | |
Create a program to check if a given string is a palindrome | "racecar" | """ Create a program to check if a given string is a palindrome """ def is_palindrome(string): n = len(string) for i in range(n // 2): if string[i] != string[n-i-1]: return False return True if __name__ == '__main__': print(is_palindrome("racecar")) | null |
null | null | null | Alon Bement
Alon Bement (1876–1954) was an American artist, arts administrator, author, and teacher. He served as the Dean of Traphagen School of Fashion from 1946 until 1951. Early life and education Alon Bement was born on August 15, 1876, in Ashfield, Massachusetts. His family was of French descendant, with a prior... |
Output a triangle shape using only asterisks (e.g. *) in Java. | public class Triangle { public static void main(String[] args) { int limit=15; System.out.println("Right Angle Triangle"); for (int i = 0; i < limit; i++) { for (int j = 0; j <= i; j++) { System.out.print("*"); } System.out.println(); } } } | null | |
Stručně shrň článek o tématu „Hukovice (zámek, okres Jeseník)“ a uveď hlavní fakta. | **Hukovice (zámek, okres Jeseník)**
Bývalý zámek Hukovice se nachází v blízkosti kostela Panny Marie ve vesnici Hukovice, části obce Velká Kraš, v okrese Jeseník. Zámek sloužil jako sídlo fojta. Historie Ves Hukovice vznikla patrně v polovině 13. století a za jejím založením stáli vratislavští biskupové. Patrně spolu ... | null | |
An array of integers is given, write a function to print the second largest element of the array. | def secondLargest(arr): first = 0 second = 0 for i in range(len(arr)): if arr[i] > first: second, first = first, arr[i] elif (arr[i] > second and arr[i] < first): second = arr[i] return second | null | |
Create a JavaScript class to represent a rectangle with properties for width and height. | class Rectangle { constructor(width,height) { this.width = width; this.height = height; } } | null | |
Print out the 3rd element in the list. | list_to_print = ['foo', 'bar', 'baz'] | baz | null |
Přelož odborně: machine learning model fine-tuning. | dotrénování (fine-tuning) modelu strojového učení — další trénink už předtrénovaného modelu na specifických datech. | null | |
Connect to a MongoDB database and select all documents from the collection ‘customers’. | import pymongo myclient = pymongo.MongoClient("mongodb://localhost:27017/") mydb = myclient["mydatabase"] mycol = mydb["customers"] mydoc = mycol.find({}) for x in mydoc: print(x) | null | |
Stručně shrň článek o tématu „Šun-č’“ a uveď hlavní fakta. | **Šun-č’**
Šun-č’ (čínsky 順治帝, pinyin Shùnzhìdì) (15. března 1638 – 5. ledna 1661) byl v pořadí druhý císař mandžuské dynastie Čching. Stal se prvním císařem z této dynastie, který vládl nad celou vlastní Čínou (1644–1661). Na trůn nastoupil v pěti letech po smrti svého otce císaře Chung Tchaj-ťiho. Po jeho smrti se c... | null | |
null | null | null | Kool & the Gang
Kool & the Gang je americká crossover skupina, která míchala R&B s disco, jazzem, funkem i soulem. Skupina byla založena v roce 1964 ve státě New Jersey, městě Jersey City. Do skupiny patří James „J.T.“ Taylor (vokalista), Robert „Kool“ Bell (basista), Ronald Bell (tenor saxofonista), George „Funky“ Br... |
Write a piece of code in Python that prints a multiplication table | def multiplication_table(n): for i in range(1, n+1): for j in range(1, n+1): print("{}x{}={}".format(i, j, i*j)) print("") | null | |
Oprav češtinu: mel bych jit domu | Měl bych jít domů. | null | |
Summarize key facts about „Ghetto D“ clearly and accurately. | **Ghetto D**
Ghetto D is the sixth studio album by American rapper Master P, released on September 2, 1997 on No Limit Records and Priority Records. Chart performance The album debuted at #137 on the Billboard 200. In Its second week the album then moved to #1 on the Billboard 200 and Top R&B/Hip-Hop Albums selling 26... | null | |
Write a code that takes two lists and returns one combined list | list1 = [1, 2, 3] list2 = [4, 5, 6] | def combine_lists(list1, list2): combined_list = list1 + list2 return combined_list print(combine_lists([1, 2, 3], [4, 5, 6])) | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.