Content-Length: 309426 | pFad | http://github.com/codebasics/data-structures-algorithms-python/pull/96/files

A6 Added the solution by Vedant0109 · Pull Request #96 · codebasics/data-structures-algorithms-python · GitHub
Skip to content

Added the solution #96

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .replit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
modules = ["python-3.12"]

[nix]
channel = "stable-24_05"
37 changes: 37 additions & 0 deletions Solutions/array_solution.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Exercise:

l= [2200,2350,2600,2130,2190] # Given list

# 1 .-->

print(f"The money spent extra is ${l[1]-l[0]}")

# 2.-->


a= l[:3]
b= sum(a)

print(f"The expense is ${b}")

# 3.-->

for expense in l:
if expense==2000:
print("Yes, You spent exactly $2000 in a moth")
break

else:
f= False

if f==False:
print("No,You didn't")

# 4.-->

l.append(1980)

# 5.-->

l[2]=1830









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/codebasics/data-structures-algorithms-python/pull/96/files

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy