Input: website: www.example.com data to crawl: phone numbers Output: import requests import re def crawl_website_for_phone_numbers(website): response ...
Input: Output: ] Prompt: Below is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: ...
Input: Not applicable Output: def factorial(n): if n == 0: return 1 else: return n * factorial(n-1) Prompt: Below is an instruction that describes ...
Input: query = "catering" word = "cat" Output: def check_contains(query, word): if query.find(word) != -1: return True return False result ...
Input: int m=36, int n=74, int divisor=6 Output: def find_numbers_divisible_by(m, n, divisor): divisible_numbers = for i in range(m, n+1): ...
Input: A dataset of 800 images of cats and dogs Output: import numpy as np import keras from keras.layers import Dense, Conv2D, MaxPooling2D, Dropout, ...
Input: Output: # Rock, paper, scissors game! def play_game(player1, player2): # Define the winning rules rules = {'rock': 'scissors', 'scissors': ...
Input: Output: def pascal_triangle(n): trow = y = for x in range(max(n, 0)): print(trow) trow= return n>=1 ...
Input: List of positive integers: Output: list_of_positive_integers = total = sum(list_of_positive_integers) avg = total/len(list_of_positive_integers) ...
Input: This machine learning project is challenging. Output: def extract_words(sentence): non_vowel_words = words = sentence.split() vowels = ...
Input: Output: def double_add(num1, num2): return (num1 + num2) * 2 Prompt: Below is an instruction that describes a task. Write a response that ...
Input: Output: arr = arr.sort() print(arr) # Output: Prompt: Below is an instruction that describes a task. Write a response that appropriately ...
No widgets added. You can disable footer widget area in theme options - footer options