Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson14_1
This project
Loading...
Sign in
Toggle navigation
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
ab50f88d
authored
May 07, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
e666c5e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
test1.py
test2.py
test1.py
0 → 100644
View file @
ab50f88d
# python Lv2-4
# 1.C,4个
# 2.B
# 3.if there is a print(num)the answer is 3 but
# if there is not there is no answer
# 4.B
# 二
# 1.break or exit.break 是退出循环,exit 执行下面的代码。exit 是退出所有的代码。
# 2.i=0
# while i<7:
# print(i)
# i+=1
# if i==6:
# break
# 3.打印出0-20内的奇数数字。
# 4.i=0
# while i<=10:
# if i%2 ==0:
# print(i)
# i+=1
# else:
# i+=1
# 5.?
test2.py
0 → 100644
View file @
ab50f88d
name
=
[
'd'
,
'f'
,
'g'
,
'h'
]
print
(
name
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment