Skip to content

Commit

Permalink
midtermProject.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AliHusseinAlmoussawi authored Nov 26, 2023
1 parent 429b8c9 commit b880f69
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions midtermProject.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def createNestedTabs(Tabs):
# Sorting tabs according to titles
def sortTabs(Tabs):
if len(Tabs) > 1:
if len(Tabs) > 1:
mid = len(Tabs) // 2
left = Tabs[:mid]
right = Tabs[mid:]
Expand Down Expand Up @@ -137,12 +136,9 @@ def sortTabs(Tabs):
j += 1
k += 1

print("Tabs sorted successfully")
else:
print("There should be at least two tabs to sort.6")
printTitles(Tabs)


return

# Sorting nested tabs
def sortNestedTabs(Tabs):
for tab in Tabs:
Expand Down

0 comments on commit b880f69

Please sign in to comment.