Explore
Courses
Batches
Sketches
Statistics
Code a Pookkalam
Jobs
Devsprint
People
Course Creation
Create a Course
Guidelines
Resources
Support
Blogs
My Profile
About Us
Login
Sketches
2
Ruler Function in Python
By
ARJUN
Run
def ruler_pattern(n): pattern = 1 for i in range(2,n+1): pattern=str(pattern)+" "+str(i)+" "+str(pattern) return(pattern) a = ruler_pattern(5) print(a)
Comments
Want to discuss?
Post it here, our mentors will help you out.
Login