Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update README.md
  • Loading branch information
tommygonzaleza authored Mar 14, 2022
commit eefc253deb16d41eb3d2852e10d70d724094934e
17 changes: 11 additions & 6 deletions exercises/022-list-and-tuple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## 📝 Instructions:

1. Write a function `list_tuple()` which accepts a sequence of comma-separated numbers from console and generate a list and a tuple which contains every number.
1. Write a function `list_tuple()` which accepts a sequence of comma-separated numbers in a string as parameter and generate a list or a tuple which contains every number.

## Example input:

Expand All @@ -12,11 +12,16 @@ list_tuple(34,67,55,33,12,98)

## Example output:

+ ['34', '67', '55', '33', '12', '98']
('34', '67', '55', '33', '12', '98')
```bash
['34', '67', '55', '33', '12', '98']
```

## 💡 Hints:
or

+ In case of input data being supplied to the question, it should be assumed to be a console input.
```bash
('34', '67', '55', '33', '12', '98')
```

## 💡 Hints:

+ `tuple()` method may be used to convert the list into a tuple
+ `tuple()` method may be used to convert the list into a tuple