From 0480bb91b7bec1063c37769acc26859191f0287d Mon Sep 17 00:00:00 2001 From: Aditya Singh Date: Sat, 7 Mar 2026 17:22:27 +0530 Subject: [PATCH] fix(curriculum): update example codes for set and tuple (#66282) --- .../67fe859a00971c34a23abd43.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/curriculum/challenges/english/blocks/lecture-understanding-variables-and-data-types/67fe859a00971c34a23abd43.md b/curriculum/challenges/english/blocks/lecture-understanding-variables-and-data-types/67fe859a00971c34a23abd43.md index aef347c62c4..a0cb9f15431 100644 --- a/curriculum/challenges/english/blocks/lecture-understanding-variables-and-data-types/67fe859a00971c34a23abd43.md +++ b/curriculum/challenges/english/blocks/lecture-understanding-variables-and-data-types/67fe859a00971c34a23abd43.md @@ -69,11 +69,11 @@ my_boolean_var = True print('Boolean:', my_boolean_var) # Boolean: True ``` -- Set: An unordered collection of unique elements, like `{4, 2, 0}`. +- Set: An unordered collection of unique elements, like `{0.5, 4, 'apple'}`. ```python -my_set_var = {7, 5, 8} -print('Set:', my_set_var) # Set: {7, 5, 8} +my_set_var = {7, 'hello', 8.5} +print('Set:', my_set_var) # Set: {7, 'hello', 8.5} ``` - Dictionary: A collection of key-value pairs enclosed in curly braces, like `{'name': 'John Doe', 'age': 28}`. @@ -83,11 +83,11 @@ my_dictionary_var = {'name': 'Alice', 'age': 25} print('Dictionary:', my_dictionary_var) # Dictionary: {'name': 'Alice', 'age': 25} ``` -- Tuple: An immutable ordered collection, enclosed in brackets, like `(7, 8, 4)`. +- Tuple: An immutable ordered collection, enclosed in parentheses, like `('apple', 4.5, 7)`. ```python -my_tuple_var = (7, 5, 8) -print('Tuple:', my_tuple_var) # Tuple: (7, 5, 8) +my_tuple_var = (7, 'hello', 8.5) +print('Tuple:', my_tuple_var) # Tuple: (7, 'hello', 8.5) ``` - Range: A sequence of numbers, often used in loops, for example, `range(5)`. @@ -136,13 +136,13 @@ print(type(my_string_var)) # my_boolean_var = True print(type(my_boolean_var)) # -my_set_var = {7, 5, 8} +my_set_var = {7, 'hello', 8.5} print(type(my_set_var)) # my_dictionary_var = {'name': 'Alice', 'age': 25} print(type(my_dictionary_var)) # -my_tuple_var = (7, 5, 8) +my_tuple_var = (7, 'hello', 8.5) print(type(my_tuple_var)) # my_range_var = range(5)