-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New files #11
base: main
Are you sure you want to change the base?
New files #11
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the comments below @ChiaRaissa
if arr.count(num) == 1: | ||
list.append(num) | ||
return list | ||
print(getdistinctelements([1,2,3,4])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should call this print out of the body of the function
@@ -0,0 +1,3 @@ | |||
def words(text): | |||
return text.split() | |||
print(words("Hello there")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line
listOfChars = list() | ||
listOfChars.extend(myString) | ||
print("The input string is: ", myString) | ||
print("The array of chracters is: ", listOfChars) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line
else: | ||
result += elt | ||
return result | ||
print(sum_of_jagged_array([2, [3,4,2], 5, 2])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this print should be out of the body of the function
return maxIf | ||
else: | ||
return maxElse | ||
print(maxNum([2, 6, [200, 4], 8])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this print should be out of the body of the function
long = len(elt) | ||
result = elt | ||
return result | ||
print(longestWord("My light will shine")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this print should be out of the body of the function
arr = array.array('B', [1, 2, 3, 4, 5, 6]) | ||
print("original array: ", arr) | ||
random.shuffle(arr) | ||
print("Shuffled array: ", arr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a new line
result.append(x) | ||
count += 1 | ||
return result | ||
print(array_of_random_numbers(10)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this print should be out of the body of the function
No description provided.