Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

Administrator / lesson11_5

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 2b0df54e authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 87ddadd2
Hide whitespace changes
Inline Side-by-side
Showing with 45 additions and 0 deletions
  • __pycache__/diy.py
  • __pycache__/diy1.py
  • __pycache__/diy2.py
  • __pycache__/diy3.py
  • __pycache__/diy4.py
__pycache__/diy.py 0 → 100644
View file @ 2b0df54e
def a(x,y):
s=x+y
return s
x=1
y=3
b=a(x,y)
print(b)
\ No newline at end of file
This diff is collapsed. Click to expand it.
__pycache__/diy1.py 0 → 100644
View file @ 2b0df54e
import turtle
def a():
t=turtle.Pen()
for i in range(4):
t.forward(100)
t.left(90)
turtle.done()
print(a)
\ No newline at end of file
This diff is collapsed. Click to expand it.
__pycache__/diy2.py 0 → 100644
View file @ 2b0df54e
def a(b,c):
if b>c:
print(b)
else:
print(c)
b=5
c=6
d=a(b,c)
print(d)
\ No newline at end of file
This diff is collapsed. Click to expand it.
__pycache__/diy3.py 0 → 100644
View file @ 2b0df54e
def a(b):
c=0
for i in range(b+1):
c=c+i
return c
b=3
d=a(b)
print(d)
\ No newline at end of file
This diff is collapsed. Click to expand it.
__pycache__/diy4.py 0 → 100644
View file @ 2b0df54e
def b(c):
n=0
for i in range(len(c)):
n=max(n,a[i])
return n
a=[5,9,7,10,4]
c=b(a)
print(c)
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment