Language:EN
Pages: 3
Words: 247
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
please the task python languagestudent submitted i

Python Code for Tasks Assignment Answers

Your question:

Please do the task in Python language

student submitted image, transcription available below

6

>>> next_triangular_number (25)

2016

pass

>>> add( [25])

>>> add( [92, 61, 97, 10, -39])

A9 def flip(binary_string):

>>> flip(**)

>>>>flip('001011111111")

pass

Assignment Help Answers with Step-by-Step Explanation:

    # Calculate the next triangular number greater than or equal to num

    i = 1

        i += 1

# Task 4

def flip(binary_string):

    # Reverse the binary string

print(next_triangular_number(40))    # Should print 45

print(next_triangular_number(2000))  # Should print 2016

print(add([-24, -25, -33, 32, -81, -58, 28, -4, -30, -69, 44, -41]))  # Should print -165

# Testing Task 5

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Misha Ravi

PageId: DOC840EFED