instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
null
null
null
Lonely Vigils Lonely Vigils is a collection of fantasy, horror and mystery short stories by American author Manly Wade Wellman. It was released in 1981 by Carcosa in an edition of 1,548 copies, of which the 566 pre-ordered copies were signed by the author and artist. The stories feature Wellman's supernatural detectiv...
null
null
null
12.8 cm FlaK 40 The 12.8 cm FlaK 40 was a German anti-aircraft gun used in World War II. Although it was not produced in great numbers, it was reportedly one of the most effective heavy AA guns of its era. History Development of the 12.8 cm FlaK 40 began in 1936, with the contract being awarded to Rheinmetall Borsig. ...
Potřebuju Python helper `is_even`: vrátí True pokud je sudé.
```python def is_even(n: int) -> bool: return n % 2 == 0 ```
null
Create a HTML page to display information about a group of users.
User details: John – Age: 24, Profession: Developer Mark – Age: 26, Profession: Designer
<html> <head> </head> <body> <h1>User Details</h1> <p>John – Age: 24, Profession: Developer</p> <p>Mark – Age: 26, Profession: Designer</p> </body> </html>
null
Stručně shrň článek o tématu „Božská Ema“ a uveď hlavní fakta.
**Božská Ema** Božská Ema je český životopisný film o české operní pěvkyni Emě Destinnové, který natočil režisér Jiří Krejčík v roce 1979. Film ukazuje především období návratu slavné operní hvězdy (Božidara Turzonovová) z Ameriky do rodné země a její vlastenectví, které stálo proti tehdejšímu Rakousku-Uhersku. Extern...
null
In Python, write a program to remove all duplicates from a given list of integers.
def remove_duplicates(arr): result = [] seen = set() for item in arr: if item not in seen: result.append(item) seen.add(item) return result
null
Write a function in JavaScript to check if the given string contains a vowel or not.
function containsVowel(str) { var vowels = "aeiou" for(i=0; i<str.length; i++) { if (vowels.indexOf(str[i]) !== -1) return true; } return false; }
null
Potřebuju Python helper `to_upper`: převod na velká písmena.
```python def to_upper(s: str) -> str: return s.upper() ```
null
Kolik je 18 × 9?
18 × 9 = 162
null
Generate an SQL query to get the top 5 oldest people in a database table.
Table: people
SELECT * FROM people ORDER BY age DESC LIMIT 5;
null
null
null
null
Jakob Gauermann Jakob Gauermann (1773, Oeffingen – 1843, Miesenbach) was a German landscape and genre painter and engraver born in Oeffingen, near Stuttgart. Life He at first worked as a stonemason at Hohenheim. His strong inclination for drawing brought him to the knowledge of Charles Eugene, Duke of Württemberg, who...
Create a HTML table to present student information.
<table> <tr> <td>Name</td><td>Age</td><td>Gender</td><td>Address</td> </tr> <tr> <td>John Doe</td><td>24</td><td>Male</td><td>123 Main Street</td> </tr> </table>
null
Kolik je 2 × 6?
2 × 6 = 12
null
Summarize key facts about „Tom Greenwood (footballer)“ clearly and accurately.
**Tom Greenwood (footballer)** Thomas George Greenwood (6 September 1889 – 8 January 1935) was an Australian rules footballer who played with Essendon in the Victorian Football League (VFL). Notes External links 1889 births 1935 deaths Australian rules footballers from Victoria (state) Essendon Football Club players
null
Generate a function to check if parameter is equal to a specific string.
def is_equal(parameter, string): if parameter == string: return True else: return False
null
Read the given list and filter out the odd numbers.
mylist = [1,2,3,4,5]
even_list = [] for num in mylist: if num % 2 == 0: even_list.append(num) print(even_list)
null
Stručně shrň článek o tématu „Zemské volby v Čechách 1889“ a uveď hlavní fakta.
**Zemské volby v Čechách 1889** Zemské volby v Čechách 1889 byly volby konané v Českém království 2. a 5. července 1889, kterými byli zvoleni poslanci Českého zemského sněmu coby zákonodárného sboru zemské samosprávy v rámci rakousko-uherského, respektive předlitavského ústavního systému. Probíhaly podle kuriového sys...
null
Write a python program to filter a list of numbers to only include even numbers
[1, 2, 3, 4]
def filter_even(nums): even_nums = [] for num in nums: if num % 2 == 0: even_nums.append(num) return even_nums
null
Translate to English: Vytvoř novou větev.
Create a new branch.
null
Stručně shrň článek o tématu „Révovník“ a uveď hlavní fakta.
**Révovník** Révovník (Ampelopsis) je rod rostlin náležící do čeledi révovité (Vitaceae). Jsou to úponkaté dřevnaté liány s jednoduchými nebo složenými střídavými listy a drobnými květy. Plody jsou drobné bobule, často nápadných barev. Rod zahrnuje 24 druhů a je rozšířen v Asii, USA a Střední Americe. Některé druhy js...
null
Compare the two strings and output the difference between the two outputs.
String A: Hello there String B: Hi everyone
The difference is that String A contains the phrase 'Hello there' whereas string B contains the phrase 'Hi everyone'.
null
Design a SQL query to find the names of the employees who have an age of 30 or more.
Table Name: Employees Columns: Employee_ID, Last_Name, Age
SELECT Last_Name FROM Employees WHERE Age >= 30;
null
Design an HTML form to register users on a website.
<html> <head> <title>User Registration Form</title> </head> <body> <h1>Register a new user</h1> <form action="register.php" method="POST"> <label>First Name:</label><br> <input type="text" name="firstName" required><br><br> <label>Last Name:</label><br> <input type="text" name="lastName" required><br><br> <label>Email:...
null
Stručně shrň článek o tématu „Think Global“ a uveď hlavní fakta.
**Think Global** Think Global byla společnost s výrobou elektromobilů, která sídlila v Aurskongu, v Norsku. Tato společnost vyráběla automobily pod značkou THINK. Automobil Think City byl ve své době jeden ze dvou elektromobilů na světě, které byly testovány také crash testem. Aktuální modely THINK city je malý dvouse...
null
Implement an efficient sorting algorithm in Python.
def sort(arr): if len(arr) == 0: return [] else: pivot = arr[0] lesser = sort([x for x in arr[1:] if x < pivot]) greater = sort([x for x in arr[1:] if x >= pivot]) return lesser + [pivot] + greater
null
Convert the given string "I am a programmer" into upper case letters.
"I AM A PROGRAMMER"
null
Rewrite the following code snippet to improve readability.
def f(x): return [x * i for i in range(1, x + 1)]
def f(x): numbers = [] for i in range(1, x + 1): numbers.append(x * i) return numbers
null
Find the longest common substring between two strings.
s1 = "Tangible" s2 = "Non-Tangible"
""" Find the longest common substring between two strings """ def longest_common_substring(s1, s2): """Find the longest common substring between two strings. Args: s1 (str): The first string. s2 (str): The second string. Returns: str: The longest common substring. """ max_length = 0 longest_substring = "" len1, len2 = ...
null
Stručně shrň článek o tématu „Projekt Highwater“ a uveď hlavní fakta.
**Projekt Highwater** Projekt Highwater byl vědecký experiment zabývající se následky vypuštění velkého množství kapaliny do svrchních vrstev atmosféry. Experimenty byly součástí testovacího programu nové rakety NASA, Saturn I. Hlavním účelem celého projektu bylo zjistit, co se stane, pokud některá z raket Saturn expl...
null
Summarize key facts about „Ruakōkoputuna River“ clearly and accurately.
**Ruakōkoputuna River** The Ruakōkoputuna River is a river of the Wairarapa, in the Wellington Region of New Zealand's North Island. It flows northeast from its sources within Haurangi Forest Park to the east of Palliser Bay, reaching the Huangarua River south of Martinborough. The river's upper section flow through t...
null
null
null
null
Ilkley railway station Ilkley railway station serves Ilkley in the City of Bradford, West Yorkshire, England. On the Wharfedale Line, it is served by Class 333 electric trains run by Northern Trains, which also manages the station. Services During Monday to Saturday, daytime services run to/from Leeds twice per hour a...
What ocean is the largest?
The Pacific Ocean.
null
Summarize key facts about „Qajar Tappeh“ clearly and accurately.
**Qajar Tappeh** Qajar Tappeh () is a village in Talarpey Rural District, in the Central District of Simorgh County, Mazandaran Province, Iran. At the 2006 census, its population was 106, in 28 families. References Populated places in Simorgh County
null
Write a function to rearrange the elements of an array in such a way that no two same numbers are adjacent to each other.
mylist = [2, 5, 9, 2, 1, 5, 9, 0]
def rearrange(mylist): mylist.sort() length = len(mylist) temp = [0]*(length + 1) # to store indexes of mylist[] j, k = 0, length-1; # filling temp[] from both sides for i in range(length): if i%2==0: temp[i] = mylist[j] j += 1 else: temp[i] = mylist[k] k -= 1 # modify original array for i in range(length): mylist[i] =...
null
Write a regex pattern to match a float number with at least one decimal place.
^-?\d+(\.\d+)?$
null
Write a Ruby program to print out all the numbers between 1-100 which are divisible by 5.
1.upto(100) do |i| puts i if i % 5 == 0 end
null
Edit the following Python code to print out “The answer is X”
print("X + 5 = 10")
print("The answer is " + str(10 - 5))
null
Spočítej: 5 + 13 = ?
5 + 13 = 18
null
null
null
null
Marc Almond Marc Almond, rodným jménem Peter Mark Sinclear Almond, (* 9. července 1957 Southport, Spojené království) je anglický zpěvák, skladatel a herec. Ve své hudbě míchal new wave se synthpopem, popem a dancem. Proslavil se zejména členstvím ve vlivné kapele Soft Cell, se kterým měl i několik hitů. Kapela ovlivn...
Stručně shrň článek o tématu „Megumi Ogata“ a uveď hlavní fakta.
**Megumi Ogata** Megumi Ogata (, Ogata Megumi) (6. června, 1965 v Tokiu) je J-popová zpěvačka a hlasová herečka. Jako zpěvačka působí pod pseudonymem em:óu. Chodila na univerzitu Tókai, ale odešla z ní kvůli nedostatku zájmu. V roce 2004 se podruhé vdala. Megumi měří 168 cm a má krevní skupinu B. Vybrané role Významné...
null
Suggest a completion to the following class definition that creates a constructor to initialize a Person object.
class Person: def __init__(self):
class Person: def __init__(self, name, age): self.name = name self.age = age
null
null
null
null
Zdeněk Janík Zdeněk Janík (7. října 1923, Brno – 3. dubna 2022, Praha) byl český básník. Původním povoláním byl pedagog a redaktor; za normalizace pracoval jako korektor. Byl členem Obce spisovatelů, PEN klubu a Syndikátu novinářů. Zdeněk Janík publikoval taktéž pod pseudonymem Tomáš Šobr. Jeho krédem byl verš z básně...
Write a Python function `invert_dict` that prohodí klíče a hodnoty (unikátní).
```python def invert_dict(d: dict) -> dict: return {v: k for k, v in d.items()} ```
null
null
null
null
Viktor Zykov Viktor Pavlovich Zykov (19 September 1854 — not earlier than 1923) was a lieutenant general, and a participant in the Russo-Turkish War (1877-78) and Russo-Japanese War. Biography Victor Zykov was born on 19 September 1854. He was educated in the Saratov Classical Gymnasium and the Kazan Infantry Junker S...
Write a Java statement to declare a string variable, “str”, and initialize it with a value “Good morning!”.
String str = "Good morning!";
null
Calculate the sum of all the multiples of 3 and 5 between 0 and n
n = 10
def sum_multiples(n): result = 0 for i in range(1, n): if i % 3 == 0 or i % 5 == 0: result += i return result if __name__ == '__main__': print(sum_multiples(n))
null
What could be a use case of a 'while' loop in Python?
A while loop can be used to iterate over a sequence or perform a computation until a specific condition is met. For example, it can be used to generate a list of prime numbers, where it would check if the current number is a prime number by checking if its divisible by any of the already discovered primes before it.
null
You need to write a Java program to check whether a given string is a palindrome or not.
public class Palindrome { public static void main(String[] args) { String a = "Madam"; String b = ""; int n = a.length(); for(int i = n - 1; i >= 0; i--) { b = b + a.charAt(i); } if(a.equalsIgnoreCase(b)) { System.out.println("The string is a palindrome."); } else { System.out.println("The string is not a palindrome.")...
null
Design a solution using Java to calculate the mean of all the numbers in a given array.
[4, 7, 11, 15, 18, 21]
public static double mean(int[] array) { double sum = 0; int length = array.length; // loop through each number and calculate the sum for (int num : array) sum += num; // calculate the mean and return it return sum/ length; }
null
Create a function that will accept a list and return the sum of all elements in the list
def sum_list(mylist): s = 0 for x in mylist: s += x return s
null
Ahoj
Ahoj! Jak ti můžu pomoct?
null
Using the array below, count the occurrence of the number 3.
arr = [1, 1, 2, 3, 3, 3, 4, 5]
arr = [1, 1, 2, 3, 3, 3, 4, 5] def count_number(arr, num): count = 0 for val in arr: if val == num: count += 1 return count count = count_number(arr, 3) print(count) # Output: 3
null
Summarize key facts about „Oleška“ clearly and accurately.
**Oleška** Oleška is a municipality and village in Prague-East District in the Central Bohemian Region of the Czech Republic. It has about 1,000 inhabitants. Administrative parts Villages of Brník, Bulánka, Králka and Krymlov are administrative parts of Oleška. References Villages in Prague-East District
null
null
null
null
Manjit Singh Manjit Singh may refer to: Manjit Singh (armament scientist) (born 1958), Indian scientist Manjit Singh (footballer) (born 1986), Indian football player Manjit Singh (runner) (born 1989) Indian middle-distance runner Manjit Singh (strongman), Indian-English strongman Manjit Singh (soldier), Indian brigadi...
Summarize key facts about „Mayuzumi“ clearly and accurately.
**Mayuzumi** Mayuzumi (written: 黛) is a Japanese surname. Notable people with the surname include: , Japanese singer , Japanese composer Fictional characters , a character in the visual novel Maji de Watashi ni Koi Shinasai! Japanese-language surnames
null
null
null
null
Akçayurt, Hani Akçayurt () is a neighbourhood in the municipality and district of Hani, Diyarbakır Province in Turkey. The village is populated by Kurds and had a population of 65 in 2022. Disappearance of the village muhtar A Kurdish muhtar (elected village head) after being released stated in a press statement that ...
Write a SQL query that will find the records with duplicate email address in the given table.
Users Table id | name | email 1 | John | john@example.com 2 | Bill | bill@example.com 3 | Mary | mary@example.com 4 | Mary | mary@example.com 5 | Mark | mark@example.com
SELECT email FROM Users GROUP BY email HAVING COUNT(*) > 1;
null
Copy and paste the code to convert a given decimal value to its binary equivalent.
decimal_value = 17
def decToBin(decimal_value): if decimal_value > 1: decToBin(decimal_value // 2) print(decimal_value % 2, end = '') decToBin(17)
null
Stručně shrň článek o tématu „Římskokatolická farnost Veselí u Oder“ a uveď hlavní fakta.
**Římskokatolická farnost Veselí u Oder** Římskokatolická farnost Veselí u Oder (dříve jen římskokatolická farnost Veselí) je farnost Římskokatolické církve v děkanátu Bílovec ostravsko-opavské diecéze. Ve Veselí nad Odrou dlouho neexistovala fara ani kostel či kaple. Teprve roku 1785 bylo Veselí povoleno vybudovat si...
null
Write a for loop for the following dictionary.
my_dict = {'first': 'one', 'second': 'two', 'third': 'three'}
my_dict = {'first': 'one', 'second': 'two', 'third': 'three'} for key, value in my_dict.items(): print(key, value)
null
Stručně shrň článek o tématu „Římskokatolická farnost Dolní Bukovsko“ a uveď hlavní fakta.
**Římskokatolická farnost Dolní Bukovsko** Římskokatolická farnost Dolní Bukovsko je územním společenstvím římských katolíků v rámci vikariátu České Budějovice - venkov českobudějovické diecéze. O farnosti Historie V roce 1359 je v Dolním Bukovsku doložena plebánie. V kostele Narození Panny Marie se z této doby dochov...
null
Create a function to return all students with a given grade.
students = [ {'name': 'John', 'grade': 'A'}, {'name': 'Jane', 'grade': 'B'}, {'name': 'Dave', 'grade': 'A'}, {'name': 'Chris', 'grade': 'C'}, ]
def get_students_by_grade(students,grade): """Returns a list of students with a given grade.""" filtered_list = [] for student in students: if student["grade"] == grade: filtered_list.append(student) return filtered_list get_students_by_grade(students, 'A') # returns [{'name': 'John', 'grade': 'A'}, {'name': 'Dave', 'g...
null
Write a loop that prints the numbers from 0 to 9 on the console.
for (let i = 0; i < 10; i++) { console.log(i); }
null
Kolik je 20 × 5?
20 × 5 = 100
null
Summarize the following Java code.
public class MyClass { public static void main(String[] args) { int x = 10; int y = 20; int sum = x + y; System.out.println("The sum of x and y is: " + sum); } }
The given Java code declares two int variables (x and y), adds them and prints the sum of the two variables to the console.
null
Find all the even numbers in the given range.
min_num = 4 max_num = 17
# Find all the even numbers in the given range even_nums = [num for num in range(min_num, max_num + 1) if num % 2 == 0] print(even_nums) # Output: [4, 6, 8, 10, 12, 14, 16]
null
null
null
null
Célia Surget Célia Surget is France's second female rabbi. She grew up in Geneva and was ordained at Leo Baeck College in 2007. She then joined Paris's Reform synagogue and the Mouvement Juif Liberal de France (Liberal Jewish Movement of France), and was a driving force in the creation and development of the Reform yo...
Write a SVG code to create a circle with red radius of 25px.
<svg width="50" height="50"> <circle cx="25" cy="25" r="25" fill="red" /> </svg>
null
Stručně shrň článek o tématu „Double (cyklistika)“ a uveď hlavní fakta.
**Double (cyklistika)** Pojem double v cyklistické terminologii je nejčastěji spojován s vítězstvím ve dvou nejprestižnějších cyklistických závodech světa v jednom roce: Giro d'Italia a Tour de France. Uváděny jsou i double s třetím nejprestižnějším závodem: Vuelta a España. Žádnému cyklistovi se zatím nepodařilo vyhr...
null
null
null
null
Music for Installations Music for Installations je kompilační album anglického hudebníka Briana Ena. Vydáno bylo 4. května roku 2018. Vyšlo v několika různých verzích celkem na šesti kompaktních discích, případně devíti dlouhohrajících gramofonových deskách. Obsahuje nahrávky, které byly pořízeny od roku 1986.Každá z ...
Kolik je 12 - 2?
12 - 2 = 10
null
Update the code to add a class attribute "var" with the value "value".
class MyClass(): def __init__(self): pass
class MyClass(): var = "value" def __init__(self): pass
null
Implement `is_even` in Python (vrátí True pokud je sudé).
```python def is_even(n: int) -> bool: return n % 2 == 0 ```
null
Stručně shrň článek o tématu „Architektura Paříže“ a uveď hlavní fakta.
**Architektura Paříže** Ve městě Paříž se nachází velké množství světských a církevních stavebních památek od dob římské Galie po současnost zastupující všechny architektonické slohy. Památky jako Eiffelova věž, bazilika Sacré-Cœur, Louvre, katedrála Notre-Dame, Invalidovna nebo Vítězný oblouk a Champs-Élysées jsou ch...
null
Summarize key facts about „Gianfranco Pasquino“ clearly and accurately.
**Gianfranco Pasquino** Gianfranco Pasquino (born April 9, 1942 in Trana) is an Italian political scientist. Professor Emeritus of Political Science at the University of Bologna and Senior Adjunct Professor at SAIS-Europe (Bologna). He studied at the University of Turin under Norberto Bobbio and specialized under Giov...
null
null
null
null
Tíhová síla Tíhová síla je výslednice gravitační a setrvačné odstředivé síly. Tíhová síla uděluje volně puštěnému tělesu ve vakuu tíhové zrychlení g. Tíhovou sílu lze pak vypočítat jako: Prostor při povrchu Země, v němž se projevují účinky tíhové síly, nazýváme tíhové pole. Jedná se v podstatě o silové pole tvořené gr...
Napiš SQL stored procedure v PL/pgSQL. Buď upřímný.
Pokročilé SQL procedury a jiné DB dialekty neberu jako svou specializaci. Základní SELECT/INSERT v SQL ti můžu naznačit, ale pro PL/pgSQL radši oficiální docs. Hlavní stack: Python, JS, HTML, PHP.
null
Stručně shrň článek o tématu „S.W.A.T. (seriál, 2017)“ a uveď hlavní fakta.
**S.W.A.T. (seriál, 2017)** S.W.A.T. je americký kriminální televizní seriál, založený na stejnojmennem seriálu z roku 1975 vytvořený Robertem Hamnerem a Rickem Huskym. Nový seriál byl vytvořený Aaronem Rahsaanem Thomasem a Shawnem Ryanem a měl premiéru na stanici CBS 2. listopadu 2017. Dne 27. března 2018 televize CB...
null
Create a function to sum all the numbers in an array.
arr = [1, 2, 3, 4]
def sumList(arr): total = 0 for num in arr: total += num return total print(sumList(arr))
null
Develop a program to spell a given word.
"Hello"
def spellWord(word): words = list(word) for i in range(len(words)): print(words[i])
null
Design a class that stores information about a person.
class Person: def __init__(self, first_name, last_name, age, gender): self.first_name = first_name self.last_name = last_name self.age = age self.gender = gender
null
You are given a data set containing employee details. Write a query to get the sum of all salaries.
SELECT SUM(salary) FROM employees;
null
Stručně shrň článek o tématu „Lockheed Hudson“ a uveď hlavní fakta.
**Lockheed Hudson** Lockheed Hudson byl dvoumotorový vojenský letoun s dvojitou svislou ocasní plochou, odvozený z civilního dopravního stroje Lockheed Model 14 Super Electra. V první polovině druhé světové války byl používán především jako námořní průzkumný v rámci britského Coastal Command (pobřežního velitelství). ...
null
Generate a function that takes a list of strings and returns a list that includes capitalized version of all strings
['hello', 'world', 'my', 'name', 'is']
def capitalize_list(words): """This function takes a list of strings and returns a list that includes capitalized version of all strings """ capitalized_list = [] for word in words: capitalized_word = word.capitalize() capitalized_list.append(capitalized_word) return capitalized_list
null
Create a program to convert a binary number to its decimal equivalent.
def binary_to_decimal(number): result = 0 power = 0 for digit in str(number)[::-1]: if digit == '1': result += 2 ** power power += 1 return result
null
Convert the following recursive function to an iterative one.
def factorial(n): if n == 0: return 1 else: return n * factorial(n - 1)
def factorial(n): result = 1 for i in range(1, n + 1): result = result * i return result
null
Summarize key facts about „Diyor Mahkamov“ clearly and accurately.
**Diyor Mahkamov** Diyor Mahkamov (sometimes spelled Diyor Makhkamov in English; ; born 3 November 1987) is an Uzbek pop singer and actor. The singer was awarded "Badge of Uzbekistan", 30th anniversary of independence of Uzbekistan. In addition to singing, Diyor also play roles in films. Diyor played his first starrin...
null
null
null
null
Clique-width In graph theory, the clique-width of a graph is a parameter that describes the structural complexity of the graph; it is closely related to treewidth, but unlike treewidth it can be small for dense graphs. It is defined as the minimum number of labels needed to construct by means of the following 4 operat...
null
null
null
Schübelbach-Buttikon railway station Schübelbach-Buttikon railway station is a railway station in the Swiss canton of Schwyz and municipality of Schübelbach. The station is located on the Lake Zurich left-bank railway line, owned by the Swiss Federal Railways (SBB). Layout and connections Schübelbach-Buttikon has a is...
null
null
null
Alejandro Solalinde Alejandro Solalinde Guerra (born March 19, 1945) is a Mexican Catholic priest and human rights champion. He is the coordinator of the South Pacific Human Mobility Ministry of the Mexican Bishopric and director of Hermanos en el Camino, a shelter that provides Central American migrants with humanita...
Stručně shrň článek o tématu „Světový pohár v běhu na lyžích 1990/1991“ a uveď hlavní fakta.
**Světový pohár v běhu na lyžích 1990/1991** Světový pohár v běhu na lyžích 1990/91 byl desátým ročníkem Světového poháru v běhu na lyžích pod záštitou Mezinárodní lyžařské federace (FIS). Muži i ženy odjeli celkem 12 individuálních závodů a 5 štafet. Celkovými vítězi se stali Rusové Vladimir Smirnov a Jelena Välbeová...
null
null
null
null
Morgen (hudební skupina) Morgen byla americká psychedelická rocková skupina založená na Long Islandu. Vydala jediné album – „Morgen". Kapelu Morgen založil v roce 1968 Steve Morgene, Bobby Rizzo, Murray Schiffrin, Mike Ratti, a Barry Stock. Původně se jmenovala „Morgen’s Dreame Spectrum", ale to bylo později změněno j...
null
null
null
John C. Marshall (musician) John C. Marshall (17 April 1941 – 2 September 2012) was a British guitarist, vocalist and songwriter in the jazz and blues vein. He was born in London, England. Biography Marshall came from a family of musicians; his grandfather was a music teacher and taught guitar, banjo and harp, and his...
Stručně shrň článek o tématu „Jarmila Fastrová“ a uveď hlavní fakta.
**Jarmila Fastrová** Jarmila Fastrová (1. června 1899 Praha – 28. listopad 1968 Praha) byla česká překladatelka anglické a francouzské beletrie, dcera novinářky a spisovatelky Olgy Fastrové a spisovatele, dramatika a překladatele Otty Fastra. Vzdělání získala na dívčím reálném gymnáziu Minerva v Praze (1910–1918) a pa...
null
The following code is broken, please rewrite it so that it prints out all the primes within a range of 1-100.
for i in range(2,100): if i % 2 == 0: print (i, " is prime")
for i in range(2,100): is_prime = True for j in range(2,i): if i % j == 0: is_prime = False break if is_prime: print(i, "is prime")
null
Create a program to create a dictionary with words and their frequencies from a given sentence.
sentence = "Python is an easy, powerful language with a simple syntax and high readability"
def create_dict(sentence): words = sentence.split() res = {} for word in words: res[word] = words.count(word) return res # Output {'Python': 1, 'is': 1, 'an': 1, 'easy,': 1, 'powerful': 1, 'language': 1, 'with': 1, 'a': 1, 'simple': 1, 'syntax': 1, 'and': 1, 'high': 1, 'readability': 1}
null
Based on the following list, create a dictionary of each name and their corresponding birth date.
names = ["John", "Mary", "James", "Susan"] birth_dates = ["1992-12-24", "1979-05-17", "1995-08-15", "1985-04-10"]
name_birthdate_dict = dict(zip(names, birth_dates)) print(name_birthdate_dict) # Output: {'John': '1992-12-24', 'Mary': '1979-05-17', 'James': '1995-08-15', 'Susan': '1985-04-10'}
null
Write a function that determines if a given substring is present in a string or not.
def is_substring_present(string, sub_string): for i in range(len(string)): if string[i : (i + len(sub_string))] == sub_string: return True return False
null
Stručně shrň článek o tématu „Benjamin Day“ a uveď hlavní fakta.
**Benjamin Day** Benjamin Henry Day (10. dubna 1810 Springfield, Massachusetts – 21. prosince 1889 New York) byl americký vydavatel novin, nejvíce známý svým deníkem New York Sun, který byl druhým penny pressem ve Spojených státech (od roku 1833). Své noviny prodal nedlouho po založení nevlastnímu bratrovi Mosesi Yale...
null
Create a Git branch for a given feature.
Feature name: 'my-feature'
git checkout -b my-feature
null