Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

New files #11

wants to merge 1 commit into from

Conversation

ChiaRaissa
Copy link

No description provided.

@ChiaRaissa
Copy link
Author

@elroykanye

Copy link
Contributor

@elroykanye elroykanye left a 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]))
Copy link
Contributor

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"))
Copy link
Contributor

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)
Copy link
Contributor

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]))
Copy link
Contributor

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]))
Copy link
Contributor

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"))
Copy link
Contributor

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)
Copy link
Contributor

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))
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants