prompt stringlengths 14 2.1k | completion stringlengths 0 10.3k | concept stringclasses 200
values |
|---|---|---|
<?code my_string = "Hello, UL4!"?> | <?print my_string?> | string |
<?code my_string = "apple"?> | <?print my_string[0]?> | string |
<?code my_string = "Hello"?><?code other_string = "World"?> | <?print my_string + ", " + other_string + "!"?> | string |
<?code my_string = "banana"?> | <?print my_string.upper()?> | string |
<?code my_string = "abcdefg"?> | <?print my_string[1:4]?> | string |
<?code my_string = "Hello, World!"?> | <?print my_string[7:]?> | string |
<?code my_string = "apple"?><?code another_string = "pie"?> | <?print my_string + " " + another_string?> | string |
<?code my_string = "Hello"?><?code count = 2?> | <?print my_string * count?> | string |
<?code s = "hello"?><?code suffix = "world"?> | <?print s.endswith(suffix)?> | string |
<?code s = "banana"?><?code index = 2?> | <?print s[index]?> | string |
<?code x = 42?><?code y = 24?> | <?print x % y?> | integer |
<?code x = 42?><?code y = 2?> | <?print x // y?> | integer |
<?code x = 42?><?code y = 84?> | <?print x + y?> | integer |
<?code x = 42?><?code y = -x?> | <?print y?> | integer |
<?code x = 42?><?code y = 24?><?code z = x * y?> | <?print z?> | integer |
<?code x = 42?><?code y = x // 2?> | <?print y?> | integer |
<?code x = 123456789?><?code y = x % 1000?> | <?print y?> | integer |
<?code x = 42?><?code y = 24?><?code z = x + y?><?code a = z - 10?> | <?print a?> | integer |
<?code x = 42?><?code y = 25?><?code z = x * y?> | <?print z?> | integer |
<?code x = 17?><?code y = x << 2?> | <?print y?> | integer |
<?code x = 42.5?><?code y = 2.0?><?code z = x / y?> | <?print z?> | float |
<?code x = 42.5?><?code y = 2.0?> | <?print x + y?> | float |
<?code x = 42.5?><?code y = -x?> | <?print y?> | float |
<?code x = 42.0?><?code y = 23.7?><?code z = 12.9?> | <?print x + y + z?> | float |
<?code x = 42.5?><?code y = 23.7?><?code z = x / y?> | <?print z?> | float |
<?code x = 42.5?><?code y = 23.7?><?code z = x * y?> | <?print z?> | float |
<?code x = 42.0?><?code y = 2.0?><?code z = x // y?> | <?print z?> | float |
<?code x = 42.0?><?code y = 2.0?><?code z = x + y?> | <?print z?> | float |
<?code x = 42.5?><?code y = -x?> | <?print y?> | float |
<?code x = 42.5?><?code y = 23.7?><?code z = x * y?> | <?print z?> | float |
<?code x = True?><?code y = False?><?code z = x and y?> | <?print z?> | boolean |
<?code x = True?><?code y = False?><?code z = not x?> | <?print z?> | boolean |
<?code x = True?><?code y = 42?><?code z = False?> | <?print (x and y) or z?> | boolean |
<?code x = True?><?code y = False?><?code z = True?> | <?print (x or y) and z?> | boolean |
<?code x = True?><?code y = False?><?code z = 1?><?code w = 0?> | <?print (x or y) and (z or w)?> | boolean |
<?code x = True?><?code y = False?><?code z = 42?><?code w = 0?> | <?print (x and z) or (y and w)?> | boolean |
<?code x = True?><?code y = False?><?code z = not x?> | <?print z?> | boolean |
<?code x = True?><?code y = False?><?code z = True?> | <?print (x and y) or z?> | boolean |
<?code x = True?><?code y = False?><?code z = 1?><?code w = 0?> | <?print (x or y) and (z > w)?> | boolean |
<?code x = True?><?code y = False?><?code z = not y?> | <?print x and z?> | boolean |
<?code x = None?><?code y = 42?> | <?print isnone(x) and not isnone(y)?> | null |
<?code x = None?><?code y = None?> | <?print x is y?> | null |
<?code x = None?><?code y = 'test'?> | <?print isnone(x) or isnone(y)?> | null |
<?code x = None?><?code y = {'a': 1}?> | <?print x or y.get('b', None)?> | null |
<?code x = None?><?code y = 42?> | <?print x if x is not None else y?> | null |
<?code x = None?><?code y = None?><?code z = 1?> | <?print isnone(x) and isnone(y) and isnone(z)?> | null |
<?code x = None?><?code y = None?> | <?print x is y?> | null |
<?code x = None?><?code y = 'hello'?> | <?print y if x is None else x?> | null |
<?code x = None?><?code y = 1?> | <?print x or y?> | null |
<?code x = None?><?code y = 42?> | <?print (x is None) and (y is not None)?> | null |
<?code d = @(2024-03-15)?> | <?print d.year?> | date |
<?code d = @(2024-04-01)?> | <?print d.month?> | date |
<?code d = @(2024-05-20)?> | <?print d.day?> | date |
<?code d = @(2024-07-04)?> | <?print d.weekday()?> | date |
<?code d = @(2024-03-15)?> | <?print d.yearday()?> | date |
<?code d = @(2024-12-25)?> | <?print d.month()?> | date |
<?code d = @(2024-02-29)?> | <?print d.year()?> | date |
<?code d = today()?> | <?print d.isoformat()?> | date |
<?code d = @(2023-04-15)?> | <?print d.day()?> | date |
<?code d = @(2024-03-15)?> | <?print d.month()?> | date |
<?code d = now()?> | <?print d.mimeformat()?> | datetime |
<?code d = @(2024-02-29T12:34:56.123456)?> | <?print d.isoformat()?> | datetime |
<?code d = @(2024-03-15T10:20:30.456789)?> | <?print d.year()?>-<?print d.month()?>-<?print d.day()?> | datetime |
<?code d = now()?> | <?print d.hour()?> | datetime |
<?code d = @(2024-04-01T00:00:00)?> | <?print d.mimeformat()?> | datetime |
<?code d = @(2024-05-01T12:00:00)?><?code m = d.month()?> | <?print m?> | datetime |
<?code d = now()?><?code wd = d.weekday()?><?code weekdays = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday']?> | <?print weekdays[wd]?> | datetime |
<?code d = @(2024-07-14T13:25:00)?><?code h = d.hour()?> | <?print h?> | datetime |
<?code d = @(2024-08-15T20:30:45)?><?code iso = d.isoformat()?> | <?print iso?> | datetime |
<?code d = now()?><?code y = d.year()?> | <?print y?> | datetime |
<?code c = #f00?> | <?print c?> | color |
<?code c = #0f0?> | <?print c.g()?> | color |
<?code c = #008080?> | <?print c.lum()?> | color |
<?code c = #008080?> | <?print c.withlum(0.2)?> | color |
<?code c = #f00?> | <?print c.r()?> | color |
<?code c = #FF5733?> | <?print c.rellum(0.2)?> | color |
<?code c = #FF5733?> | <?print c.combine(r=255, g=85, b=51)?> | color |
<?code c = #FF5733?> | <?print c.witha(128)?> | color |
<?code c = #FF5733?> | <?print c.hls()?> | color |
<?code c = #FF5733?> | <?print c.lum()?> | color |
<?code my_list = ["apple", "banana", "cherry"]?> | <?print my_list[1]?> | list |
<?code my_list = [1, 2, 3, 4, 5]?> | <?print my_list[2:]?> | list |
<?code my_list = [1, 2, 3]?><?code other_list = [4, 5]?> | <?code my_list.append(*other_list)?><?print my_list?> | list |
<?code list1 = [1, 2, 3]?><?code list2 = [4, 5, 6]?> | <?code list3 = list1 + list2?><?print list3?> | list |
<?code my_list = ["apple", "banana", "cherry"]?> | <?print len(my_list)?> | list |
<?code list1 = [1, 2, 3]?><?code list2 = ["a", "b", "c"]?> | <?code combined = list1 + list2?><?print combined?> | list |
<?code my_list = [1, 2, 3, 4, 5]?> | <?print my_list[2]?> | list |
<?code my_list = ["apple", "banana", "cherry"]?> | <?print len(my_list)?> | list |
<?code my_list = [1, 2, 3]?><?code another_list = [4, 5]?> | <?code my_list.append(*another_list)?><?print my_list?> | list |
<?code my_dict = {"name": "Alice", "age": 30}?> | <?print my_dict["name"]?> | dictionary |
<?code my_dict = {"fruit": "apple", "color": "red"}?> | <?code my_dict["count"] = 1?><?print my_dict?> | dictionary |
<?code data = {"name": "Bob", "age": 25}?> | <?code data["city"] = "New York"?><?print data?> | dictionary |
<?code my_dict = {"name": "Eve", "city": "London"}?> | <?print my_dict.get("country", "Unknown")?> | dictionary |
<?code d = {}?><?code d["foo"] = "bar"?> | <?print d["foo"]?> | dictionary |
<?code person = {"name": "Alice", "age": 30, "city": "Paris"}?> | <?print person["name"]?> | dictionary |
<?code data = {"a": 1, "b": 2, "c": 3}?> | <?print len(data)?> | dictionary |
<?code d = {"name": "John Doe", "age": 30}?> | <?print d.get("city", "Unknown")?> | dictionary |
<?code data = {"name": "Bob", "age": 25}?> | <?code data["city"] = "New York"?><?print data["city"]?> | dictionary |
<?code data = {"name": "Alice", "age": 28}?> | <?code data.update({"city": "London", "country": "UK"})?><?print repr(data)?> | dictionary |
<?code my_set = {1, 2, 3}?> | <?print isset(my_set)?> | set |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.