From 48b44d95de66332fd71938a555f82ba37f085a3d Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 3 Jan 2020 12:53:34 +0200 Subject: [PATCH] Update description and explanation in sample --- snippets/sample.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/sample.md b/snippets/sample.md index 4f86c5ec3..f280e61be 100644 --- a/snippets/sample.md +++ b/snippets/sample.md @@ -3,9 +3,9 @@ title: sample tags: list,random,beginner --- -Returns a random element from an array. +Returns a random element from a list. -Use `randint()` to generate a random number that corresponds to an index in the list, return the element at that index. +Use `random.randint()` to generate a random number that corresponds to an index in the list, return the element at that index. ```py from random import randint