instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Modify a given sentence by replacing the invalid punctuation with a valid one.
This is an example sentence.
This is an example sentence?
null
Stručně shrň článek o tématu „Patrick Vieira“ a uveď hlavní fakta.
**Patrick Vieira** Patrick Vieira (* 23. června 1976, Dakar, Senegal) je bývalý francouzský fotbalista a reprezentant senegalského původu. Pelé ho roku 2004 zařadil mezi 125 nejlepších žijících fotbalistů. Po skončení hráčské kariéry se dal na trenérskou dráhu, od léta 2021 do března 2023 trenérem anglického Crystal P...
null
null
null
null
Andrea Dromm Andrea Dromm (born February 18, 1941) is a former American actress. Her father was an engineer, and she attended school in Patchogue and later in Greensburg, Pennsylvania. Career Dromm's career began as a child model at the age of six, but she felt it interfered with her school work. She attended the Univ...
Summarize key facts about „Lapa Sarak“ clearly and accurately.
**Lapa Sarak** Lapa Sarak (, also Romanized as Lapā Sarak; also known as Espā Sar and Lapā Sar) 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 242, in 70 families. References Populated places in Ramsar County
null
null
null
null
František Josef Gerstner František Josef Gerstner (, od roku 1810 Ritter von Gerstner – rytíř Gerstner; 22. února 1756 Chomutov – 25. června 1832 Mladějov) byl matematik, fyzik a inženýr. Roku 1806 založil Královské české stavovské technické učiliště v Praze, předchůdce dnešního Českého vysokého učení technického (ČVU...
Write a class that implements an arithmetic operator.
None
class ArithmeticOperator: def __init__(self, operator, left, right): self.operator = operator self.left = left self.right = right def operate(self): if self.operator == "+": return self.left + self.right elif self.operator == "-": return self.left - self.right elif self.operator == "*": return self.left * self.right el...
null
Output the even numbers between 0 and 10.
2, 4, 6, 8, 10
null
Stručně shrň článek o tématu „Stadion Woudestein“ a uveď hlavní fakta.
**Stadion Woudestein** Stadion Woudestein je fotbalový stadion v nizozemském městě Rotterdam, který je domovem klubu SBV Excelsior a slouží mu od doby jeho založení v roce 1902. Kapacita je 3 531 míst k sezení. Stadion je domovem Excelsioru od počátku 20. století, v jeho první polovině s určitými přestávkami. Trvalým ...
null
Summarize key facts about „Marcos Pizzelli“ clearly and accurately.
**Marcos Pizzelli** Marcos Pinheiro Pizzelli (; ; born 3 October 1984), commonly known as Marcos, is a former professional footballer. Born in Brazil, Marcos represented Armenia internationally between 2008 and 2019. Club career Ararat Yerevan Pizzelli started his career at the Brazilian club São Carlos as a youth fro...
null
Potřebuju Python helper `group_by`: seskupí list dictů podle klíče.
```python from collections import defaultdict def group_by(rows, key): g = defaultdict(list) for r in rows: g[r[key]].append(r) return dict(g) ```
null
null
null
null
Kathleen Allais Kathleen Allais (born 19 September 1975) is a French former freestyle skier. She competed in the women's moguls event at the 2002 Winter Olympics. References External links 1975 births Living people French female freestyle skiers Olympic freestyle skiers for France Freestyle skiers at the 2002 Winter O...
Summarize key facts about „Empire Theatre (41st Street)“ clearly and accurately.
**Empire Theatre (41st Street)** The Empire Theatre in New York City was a prominent Broadway theatre in the first half of the twentieth century. History The Empire Theatre opened in 1893 with a performance of The Girl I Left Behind Me by David Belasco. In February 1927 actress Gail Kane and others were arrested follo...
null
Using the comment as a guide, write the proper code to calculate the sum of the values in an array
arr = [1, 2, 3, 4, 5] # TODO: write code to calculate the sum of the values in arr
def calculate_sum(arr): sum = 0 for x in arr: sum += x return sum if __name__ == '__main__': arr = [1, 2, 3, 4, 5] print(calculate_sum(arr))
null
Analyze the given C++ code to identify possible errors.
int main() { int x = 0; while (x <= 10) x = x + 1 return 0; }
There is a missing semicolon after the "x = x + 1" line, needed to terminate the while loop.
null
Create a function that takes in two numbers as arguments and returns the product of the two.
def multiply(x, y): return x*y
null
null
null
null
Gábor Babos Gábor Babos (* 24. října 1974, Sopron, Maďarsko) je maďarský fotbalový brankář, který v současnosti hraje za nizozemský klub NAC Breda. Byl také reprezentantem Maďarska. V roce 2004 získal v dresu NAC Breda ocenění Fotbalový brankář roku Nizozemska. Fotbalová kariéra Působil v maďarských klubech FC Sopron ...
Write a Python function to check prime numbers.
```python def is_prime(n: int) -> bool: if n < 2: return False if n % 2 == 0: return n == 2 i = 3 while i * i <= n: if n % i == 0: return False i += 2 return True ```
null
null
null
null
New Rubyology New Rubyology (Xin Ru Zhu Yi) is an album by Ruby Lin. It was the first album by independent music studio Feile. Lin returned to music after a further four-year break. One of the album's singles, "Beside me" (), was the theme song for China National Music Radio's "Attention for Poor Children and Students...
Summarize key facts about „Pain model of behaviour management“ clearly and accurately.
**Pain model of behaviour management** The pain model of behaviour management, which acknowledges that physical pain and psychological pain may inhibit learning, is a model developed for teachers who work with students who have extremely challenging behaviours, social problems and a lack of social skills. The model's ...
null
Kolik je 18 - 6?
18 - 6 = 12
null
Calculate the percentage of numbers in an array that is greater than 5.
[3, 4, 7, 8, 9, 11]
def calc_perc(arr): count = 0 for num in arr: if num > 5: count +=1 return count/len(arr) *100 calc_perc([3, 4, 7, 8, 9, 11])
null
Write a query in PostgreSQL to find the total number of students with an A grade.
SELECT COUNT(*) FROM Students WHERE grade = 'A'; This query will return the total number of students with an A grade.
null
null
null
null
Blimp: The Flying Adventures Blimp: The Flying Adventures je česká videohra z roku 2009. Vytvořilo ji ostravské studio Craneballs Studios ve spolupráci s Grip Games. Hra vyšla nejdříve pro iPhony a v roce 2010 i pro PlayStation Portable a PlayStation 3. Hratelnost Žánrově se hra řadí mezi arkády. Příběh je vyprávěn ko...
Stručně shrň článek o tématu „Rudolf Hromada“ a uveď hlavní fakta.
**Rudolf Hromada** Rudolf Hromada (9. listopadu 1890 Praha– 26. října 1964 ?) byl autorem esperantských slovníků a překládal do esperanta české autory, především básníky. Život Profesí vedoucí úředník. Překládal ze všech českých básníků (Erbena, Sv. Čecha, Machara, Heyduka, Sládka, Vrchlického, Wolkera, Dyka, Seiferta...
null
Perform arithmetic operations on two numbers.
Num1: 4 Num2: 2
# Add the numbers sum = 4 + 2 # Subtract the numbers difference = 4 - 2 # Multiplication product = 4 * 2 # Exponent power = 4**2 # Division quotient = 4 / 2 # Integer Division div = 4 // 2 # Remainder remainder = 4 % 2 # Print the results print("Sum is %s\nDifference is %s\nProduct is %s\nPower is %s\nQuotient is %s\nD...
null
Spočítej: 4 + 14 = ?
4 + 14 = 18
null
Python function for: is palindrome
```python def is_palindrome(s): t = ''.join(c.lower() for c in s if c.isalnum()) return t == t[::-1] ```
null
Summarize key facts about „List of allegedly cursed objects“ clearly and accurately.
**List of allegedly cursed objects** This is a list of objects that are allegedly cursed. The Anguished Man Annabelle (doll) Busby's stoop chair Black Prince's Ruby The Crying Boy The Conjured Chest Dybbuk box The Hands Resist Him Hope Diamond James Dean's Little Bastard Koh-i-noor diamond Ötzi Several paintings Rober...
null
Normalize a string by replacing all sequence of whitespaces with a single space.
var myString = " Hello World "
function normalizeString(str) { return str.replace(/ +/g, ' ').trim(); } normalizeString(myString); // Returns "Hello World"
null
How do you generate a series of numbers from `10` to `41` in JavaScript?
let series = []; for (let i = 10; i <= 41; i++) { series.push(i); }
null
Jak commitnu změny v Gitu?
```bash git add . git commit -m "Popis změny" git push ``` Nejdřív zkontroluj `git status` a piš srozumitelnou zprávu.
null
Write code to delete the given key from the given dictionary.
Dictionary: my_dict = {'a': 1, 'b': 2, 'c': 3, 'd': 4} Key: 'd'
my_dict.pop('d')
null
Stručně shrň článek o tématu „The Pointer Sisters“ a uveď hlavní fakta.
**The Pointer Sisters** Pointer Sisters je americká popová a R&B hudební skupina, která byla založena v roce 1969 v Oaklandu v okrese Kalifornie. Jejich největší úspěch se dostavil na přelomu sedmdesátých a osmdesátých let. Kapela je aktivní i v současnosti. Jejich repertoár se měnil s přibývajícími dekádami (a léty),...
null
Summarize key facts about „Kazimierz Zakrzewski“ clearly and accurately.
**Kazimierz Zakrzewski** Kazimierz Zakrzewski (November 4, 1900 in Kraków – March 11, 1941 in Palmiry) was a Polish historian and publicist, a professor of the University of Warsaw. Zakrzewski was a co-originator of the Polish syndicalist movement, activist of the trade union Związek Związków Zawodowych, and researche...
null
Write a function that transposes a 2D array from column-major format to row-major format.
The array is [[1,2,3],[4,5,6],[7,8,9]]
def transpose(matrix): row_major = [] row, col = len(matrix), len(matrix[0]) for i in range(col): row_major.append([]) for j in range(row): row_major[i].append(matrix[j][i]) return row_major
null
Calculate the factorial of n using a recursive function.
def factorial(n): if n == 0: return 1 else: return n * factorial(n-1)
null
Return a valid URL with the given parameters.
Domain: example.com Endpoint: /api/v1/users Parameters: id: 4 name: Alex
The URL is: https://example.com/api/v1/users?id=4&name=Alex
null
Python function for: merge dicts
```python def merge(a, b): return {**a, **b} ```
null
null
null
null
Binnein an Fhidhleir Binnein an Fhidhleir, one of the Arrochar Alps, is a mountain in southern Scotland. It is located above Butterbridge on the north side the A83 road facing Beinn an Lochain to the south. The mountain has several tops, including Creag Bhrosgan (711 m); Stob Coire Creagach, which replaced Binnein an ...
Is the following code valid Python?
if bool == true: print("True")
False
null
null
null
null
Abnormal posturing Abnormal posturing is an involuntary flexion or extension of the arms and legs, indicating severe brain injury. It occurs when one set of muscles becomes incapacitated while the opposing set is not, and an external stimulus such as pain causes the working set of muscles to contract. The posturing ma...
Summarize key facts about „Threads of Destiny“ clearly and accurately.
**Threads of Destiny** is a 2006 cell phone novel series written by Mei. Akai Ito was first published on the website Mahō no Toshōkan, where it became the #1 ranked story within the first month of publication. The popularity of Akai Ito has been associated with the boom of cell phone novels in the mid-2000s in Japan. ...
null
Create a program that sorts an array of integers in ascending order.
arr = [5, 9, 1, 4, 3]
""" Create a program that sorts an array of integers in ascending order. """ def sort(arr): for i in range(len(arr)-1): min_index = i for j in range(i+1, len(arr)): if arr[min_index] > arr[j]: min_index = j arr[i], arr[min_index] = arr[min_index], arr[i] sort(arr) print(arr) # [1, 3, 4, 5, 9]
null
Count the number of quadruples that sum up to zero
arr = [-2, -1, 0, 1, 2]
def countQuadruplesSumZero(arr): """ This function returns the number of quadruples that sum up to zero. """ quad = 0 for i in range(len(arr)): for j in range(i+1, len(arr)): for k in range(j+1, len(arr)): for l in range(k+1, len(arr)): if arr[i] + arr[j] + arr[k] + arr[l] == 0: quad += 1 return quad
null
Parse this JSON string and print the value of the "name" field.
json_string = '{"name":"John", "age":25}'
import json data = json.loads(json_string) print(data['name'])
null
Write a function to create a matrix NxN with values of 0 filled in.
def generate_matrix(n): matrix = [] for _ in range(n): matrix.append([0 for _ in range(n)]) return matrix
null
Find the frequency of a given phrase in the text
text = "This is a phrase that I want to find the frequency of" phrase = "phrase"
def find_frequency(text, phrase): fdist = nltk.FreqDist(text.lower().split()) return fdist[phrase]
null
Generate HTML to highlight the third word in a given string.
String: Hello world!
<span style="background-color: yellow">Hello</span> <span>world</span>!
null
Consider the given list of tuples, remove the third element if it exists.
data = [(1, 5), (3, 4), (2, 6, 4)]
data = [(1, 5), (3, 4)]
null
Create a while loop that prints all the letters of the alphabet.
a = 'a' while a <= 'z': print(a) a = chr(ord(a)+1)
null
Napiš FastAPI CRUD kostru pro poznámky (in-memory).
```python from fastapi import FastAPI, HTTPException from pydantic import BaseModel app = FastAPI() DB: dict[int, dict] = {} _seq = 0 class NoteIn(BaseModel): text: str @app.get("/notes") def list_notes(): return list(DB.values()) @app.post("/notes") def create_note(body: NoteIn): global _seq _seq += 1 DB[_seq] = {"id"...
null
Stručně shrň článek o tématu „Farní sbor Českobratrské církve evangelické v Praze 9 – Horní Počernice“ a uveď hlavní fakta.
**Farní sbor Českobratrské církve evangelické v Praze 9 – Horní Počernice** Farní sbor Českobratrské církve evangelické v Praze 9 - Horní Počernice je sborem Českobratrské církve evangelické v Praze. Sbor spadá pod Pražský seniorát. Sbor byl ustaven jako samostatný roku 1950. Duchovní sboru je farářka Alžběta Hanychov...
null
In SQL, write an expression to output all valid email addresses from a table of users.
SELECT email FROM users WHERE email LIKE '%@%.%';
null
null
null
null
Fulgora laternaria Fulgora laternaria (often misspelled "lanternaria") is a species of Neotropical fulgorid planthopper. It is known by a large variety of common names, among them lantern fly, peanut bug, peanut-headed lanternfly, alligator bug, jequitiranaboia, machaca, chicharra-machacuy, and cocoposa. Description F...
Find the length of the longest substring in the given string without repetition.
string = "abcabcbb"
3
null
null
null
null
Nevra Necipoğlu Nevra Necipoğlu is a Turkish historian of the Byzantine Empire who is a professor of history at Boğaziçi University. Early life and education She was educated and graduated from Robert College. She then graduated from Wellesley College with a double major in History and Economics in 1982. She received ...
Write a code to calculate the mean of the list of integers provided.
nums = [10, 20, 30, 40, 50]
def calc_mean(nums): """ Calculate the mean of a list of integers """ if len(nums) == 0: return 0 else: sum_of_nums = sum(nums) mean = sum_of_nums/len(nums) return mean nums = [10, 20, 30, 40, 50] mean = calc_mean(nums) print(mean) # 30
null
Stručně shrň článek o tématu „Sonequa Martinová-Greenová“ a uveď hlavní fakta.
**Sonequa Martinová-Greenová** Sonequa Martinová-Greenová (* 21. března 1985 Russellville, Alabama) je americká herečka. Vystudovala divadelnictví na University of Alabama. Od roku 2005 postupně hrála v několika nezávislých filmech, v roce 2011 se představila ve snímku Yelling to the Sky. Od roku 2008 hostovala v různ...
null
Summarize key facts about „Harshdeep Kaur“ clearly and accurately.
**Harshdeep Kaur** Harshdeep Kaur (born 16 December 1986) is an Indian playback singer known for her Bollywood Hindi, Punjabi,English and Sufi songs. She is popularly known as "Sufi Ki Sultana" because of her soulful Sufi renditions. After winning titles in two reality shows, Kaur established herself as a lead singer ...
null
Kolik je 29 - 9?
29 - 9 = 20
null
What should be written in place of "___" to make the following code a valid if-else statement in Python?
if x >= 0: ___
if x >= 0: print("x is positive")
null
Reverse the words in a sentence stored as a list in Python.
['word', 'one', 'is', 'this']
def reverse_words(words): # Get the length of the words n = len(words) # Reverse the list words for i in range(n // 2): words[i], words[n - 1 - i] = words[n - 1 - i], words[i] return words if __name__ == "__main__": words = ['word', 'one', 'is', 'this'] print(reverse_words(words))
null
Vysvětli unit test?
Unit test ověřuje malou část kódu (funkci/metodu) automaticky a opakovatelně.
null
Create a database table with the following fields: id, name, age
CREATE TABLE TABLE_NAME ( id INT(11) NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, age INT(11) NOT NULL, PRIMARY KEY(id) );
null
Stručně shrň článek o tématu „Accenture“ a uveď hlavní fakta.
**Accenture** Accenture je globální společnost poskytující odborné služby a řešení v oblasti podnikových strategií, manažerského poradenství, digitálních technologií, technologických služeb, kybernetické bezpečnosti a podpory podnikových procesů. Sídlo má v irském hlavním městě Dublinu a pobočky ve zhruba 120 zemích s...
null
Modify the code to convert any temperature from Celsius to Fahrenheit
def CtoF(x): #TODO
def CtoF(x): F = (9/5 * x) + 32 return F
null
Summarize key facts about „Aaron Phangiso“ clearly and accurately.
**Aaron Phangiso** Aaron Mpho Phangiso (born 21 January 1984) is an international South African cricketer who domestically plays for Northerns. He is a slow left arm orthodox bowler. Domestic career In August 2017, Phangiso was named in Bloem City Blazers' squad for the first season of the T20 Global League. However, ...
null
Dobrý den
Zdravím! Napiš úkol — rád pomůžu.
null
Stručně shrň článek o tématu „Římskokatolická farnost Vražné“ a uveď hlavní fakta.
**Římskokatolická farnost Vražné** Římskokatolická farnost Vražné, dříve též římskokatolická farnost Dolní Vražné, je farnost Římskokatolické církve v děkanátu Bílovec ostravsko-opavské diecéze. Na dávnou existenci farnosti ve Vražném poukazuje patrocinium farního kostela, zmiňuje se však poprvé 10. března 1455, kdy b...
null
Create a web form in HTML that captures a user's name, address, and a select box for their favorite color.
<form method="post"> <label>Name:</label><br> <input type="text" name="name"><br> <label>Address:</label><br> <input type="text" name="address"><br> <label>Favorite Color:</label><br> <select name="favorite_color"> <option value="red">Red</option> <option value="blue">Blue</option> <option value="green">Green</option> ...
null
Output "Hello, World!" to the console.
print("Hello, World!")
null
null
null
null
Krajíček Příjmení Krajíček nosí více různých osobností: Ivan Krajíček (1940–1997) – slovenský herec, zpěvák a moderátor Jindřich Duchoslav Krajíček (1867–1944) – český malíř a ilustrátor Libor Krajíček – český sociální geograf Ludvika Nová-Krajíčková, rozená Nová (1876–1955) – česká lékařka a gynekoložka, manželka Jin...
Write a function to calculate the cost of purchasing X items at a given cost
X = 5 and Cost per item= 2.00
def cost(x, price): return x*price cost(5, 2.00) # returns 10.00
null
Kolik je 23 - 9?
23 - 9 = 14
null
Write a SQL query to get all employees' name and salary who are from department "IT"
SELECT name, salary FROM Employees WHERE department = 'IT';
null
Stručně shrň článek o tématu „Rychlost“ a uveď hlavní fakta.
**Rychlost** Rychlost je charakteristika pohybu, která určuje, jakým způsobem se mění poloha tělesa (hmotného bodu) v čase. Obecněji se rychlost používá pro označení časové změny jakékoliv veličiny (např. rychlost chemické reakce, rychlost společenských změn apod.). Pokud není uvedeno jinak, bude dále pojednáváno o ry...
null
null
null
null
Tom Thompson (American football) Emmet C. "Tom" Thompson II (born c. 1948) is an American former college football player who was a member of the football team at Austin College in Sherman, Texas during the 2009 NCAA Division III football season. In 2011, he earned a graduate degree from Austin College. He has been the...
null
null
null
Pro Arte Orchestra The Pro Arte Orchestra was a British symphony orchestra founded in 1955. Background The Pro Arte Orchestra was founded as a limited company chaired by the double-bass player Eugene Cruft; directors also included Archie Camden and Antony English. The initial aim was to perform "the finest of the ligh...
null
null
null
1839 in Denmark Events from the year 1839 in Denmark. Incumbents Monarch – Frederick VI (until 3 December), then Christian VIII Prime minister – Otto Joachim Events Undated Births JanuaryMarch 25 January – Frederikke Federspiel, photographer (died 1913) 6 February – Caroline Testman, women's rights activist (d. 1919) ...
Describe how a linked list data structure works in pseudo code.
A linked list is a linear data structure that consists of a sequence of elements, each element containing a pointer to the next element in the list. Some implementations may also contain a pointer to the previous element in the list. Pseudo-code would look like: START Class Node int data Node next END Class Node head /...
null
Stručně shrň článek o tématu „James B. Sheffield Olympic Skating Rink“ a uveď hlavní fakta.
**James B. Sheffield Olympic Skating Rink** James B. Sheffield Olympic Skating Rink je venkovní ledová plocha sloužící zejména pro rychlobruslení v Lake Placid ve Spojených státech amerických. Pojme 7 500 diváků. Byl hlavním centrem dění při Zimních olympijských hrách v roce 1932. Kromě zahajovacího a závěrečného cere...
null
Stručně shrň článek o tématu „Alvin E. Roth“ a uveď hlavní fakta.
**Alvin E. Roth** Alvin Elliot Roth (* 18. prosinec 1951) je americký ekonom židovského původu, profesor na Stanfordově a Harvardově univerzitě. Zaobíral se především teorií her a experimentální ekonomií. Roku 2012 získal spolu s Lloydem Shapleym Nobelovu cenu za ekonomii, a to za „teorii stabilních tržních alokací a ...
null
null
null
null
Ali Ceesay Ali Ceesay (born 10 October 1992) is a Gambian football defender, who last played for Skonto Rīga in the Latvian Higher League. Club career MŠK Žilina Ali Ceesay started his football career playing for Samger. Ceesay transferred to Žilina in spring 2011. His older brother Momodou is also a footballer. Ali m...
Write a JavaScript code to set a cookie with the name "username" and value "JohnDoe".
document.cookie = "username=JohnDoe";
null
null
null
null
Líza bortí mýty Líza bortí mýty (v anglickém originále ) je 16. díl 7. řady (celkem 144.) amerického animovaného seriálu Simpsonovi. Scénář napsal Jonathan Collier a díl režíroval Mike B. Anderson. V USA měl premiéru dne 18. února 1996 na stanici Fox Broadcasting Company a v Česku byl poprvé vysílán 14. října 1997 na ...
Create a program in JavaScript to remove the duplicate entries in an array.
arr = [1, 2, 3, 1, 4, 5, 6, 4, 1]
function removeDuplicates(arr) { let uniqueArr = new Set(arr); let arrAfterRemoval = Array.from(uniqueArr); return arrAfterRemoval; }
null
Write a code snippet in JavaScript to get the date and time of the last day of the current month.
var today = new Date(); var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0); var lastDayOfMonthTime = lastDayOfMonth.toLocaleString(); console.log(lastDayofMonthTime);
null
null
null
null
Částice Částice je velmi malá část hmoty, která se projevuje svými charakteristickými vlastnostmi (energií, hmotností, elektrickým nábojem, spinem, chemickou reaktivností, dobou života, aj.). Studiem částic ve fyzice se zabývá především fyzika částic, která se zaměřuje především na studium elementárních částic a dále ...
Determine the code complexity for the following codse sample.
def get_sum(list): sum = 0 for num in list: sum += num return sum
The code complexity of the given function is O(n), where n is the length of the list.
null
Create a computer algorithm to determine the validity of a sudoku puzzle
def is_valid_sudoku(puzzle): size = len(puzzle) for row in range(len(puzzle)): seen = set() for col in range(size): number = puzzle[row][col] if number != 0: if number in seen: return False seen.add(number) for col in range(3): seen = set() for row in range(size): number = puzzle[row][col] if number != 0: if number in ...
null
Summarize key facts about „Jennat Rudbar Rural District“ clearly and accurately.
**Jennat Rudbar Rural District** Jennat Rudbar Rural District () is in Dalkhani District of Ramsar County, Mazandaran province, Iran. At the National Census of 2006, its population was 627 in 261 households. There were 785 inhabitants in 294 households at the following census of 2011. At the most recent census of 2016...
null
Find the index of the element that occurs only once in the array.
arr = [1, 1, 5, 5, 6, 8];
def find_unique_element(arr): index = -1 for i in range(len(arr)): freq = 0 for j in range(len(arr)): if arr[i] == arr[j]: freq += 1 if freq == 1: index = i break return index # Testing arr = [1, 1, 5, 5, 6, 8] index = find_unique_element(arr) print("Index of the unique element is: ", index)
null
null
null
null
Gene3D Gene3D je komplexní databáze proteinových domén. Umožňuje sjednocený pohled na proteiny z hlediska struktury, molekulární funkce i evolučního vývoje. Již v roce 2005 poskytovala více než 240 genomů (i kompletních proteomových sad) různých organismů. Princip Gene3D spojuje velké množství proteinových rodin a fun...
null
null
null
Tři veteráni Tři veteráni je česká barevná filmová pohádka, 21. a předposlední celovečerní film režiséra Oldřicha Lipského z roku 1983. Scénář vznikl na motivy pohádky Jana Wericha, který ji poprvé vydal v roce 1960 spolu s dalšími 16 pohádkami v knize Fimfárum. V roce 1963 ji Jan Werich načetl pro vydavatelství Supra...
Summarize key facts about „Turu people (Tanzania)“ clearly and accurately.
**Turu people (Tanzania)** The Turu (Arimi, Wanyaturu) are an ethnic and linguistic group based in the Singida Region of north-central Tanzania who speak Bantu language Kinyaturu. In 1993, the Turu population was estimated to number 556,000. The current population of the Turu is now over 1,000,000. They speak the Turu...
null
Create a class in Java for a rectangle shape with length and breadth as attributes.
public class Rectangle { int length; int breadth; Rectangle(int l, int b) { length = l; breadth = b; } int calculateArea() { return length * breadth; } }
null
Kolik je 28 - 12?
28 - 12 = 16
null
null
null
null
1985–86 Iowa State Cyclones men's basketball team The 1985–86 Iowa State Cyclones men's basketball team represented Iowa State University during the 1985–86 NCAA Division I men's basketball season. The Cyclones were coached by Johnny Orr, who was in his 6th season. They played their home games at Hilton Coliseum in Am...
null
null
null
Romerike Folk High School Romerike Folk High School is a freelance folk high school at Jessheim in Akershus. The school has approximately 105 students and is owned by Viken county. Romerike has cultivated one discipline, theater and music. Each year, approximately 40-50 small and large performances, everything from co...
null
null
null
Julia V. Grilli Julia Veronica Grilli (March 14, 1893December 6, 1991), also seen as Giulia Grilli, was an American lawyer and concert singer. Early life Julia Veronica Grilli was born in New York, the daughter of Nicola Grilli and Rosina (Rose) Trippitelli Grilli. Her parents were immigrants from Sulmona in Abruzzo. ...