Skip to content

aahevolution/python_codes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

python_codes

To upload python codes l=[] size=int(input("Enter size")) for i in range(0,size): num=int(input("Enter elemnets")) l.append(num) print("List:",l) ch=int(input("Enter your choice 1.Ascending or 2. Descending")) if ch==1: for i in range(0,len(l)-1): for j in range(i+1,len(l)): if l[i]>l[j]: temp=l[i] l[i]=l[j] l[j]=temp print("List:",l) if ch==2: for i in range(0,len(l)-1): for j in range(i+1,len(l)): if l[i]<l[j]: temp=l[i] l[i]=l[j] l[j]=temp

print("List:",l)    

About

To upload python codes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%