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 ae57de61 authored 4 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent 99f46249
Hide whitespace changes
Inline Side-by-side
Showing with 12 additions and 8 deletions
  • __pycache__/func.cpython-37.pyc
  • func.py
  • s.py
__pycache__/func.cpython-37.pyc
View file @ ae57de61
No preview for this file type
This diff is collapsed. Click to expand it.
func.py
View file @ ae57de61
...@@ -12,8 +12,11 @@ def new_input(): ...@@ -12,8 +12,11 @@ def new_input():
else: else:
total.append(unit) total.append(unit)
return total return total
result=new_input()
print(result)
count=0 def sum(t):
for i in result: count=0
count=count+i for i in t:
\ No newline at end of file count=count+i
return count
This diff is collapsed. Click to expand it.
s.py
View file @ ae57de61
import func import func
d=func.new_input() d=func.new_input()
c=new_input(d) c=func.sum(d)
\ No newline at end of file print(d)
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