USYD悉尼大学INFO1110 详细作业解析Week4 revision(未更新完)


前言

我尽可能做详细,每个步骤讲清楚。答案不止一种,有大神可以留言。其他的课程课件简介请看我的主页。
Week4的revision,对于编程小白的我来说有点小挑战。可能你看的时候有的题没有讲,小编没有太大把握能讲明白,在后期会慢慢补上。


Zig Zag(待更新讲解)

Write a program which continually accepts user input. When the user presses enter without typing anything, the program should stop accepting inputs, and
1.Print out the 1st, 3rd, 5th, 7th, … things which where entered, then
2.Print out the 2nd, 4th, 6th, … things which where entered

Examples:
在这里插入图片描述
![在这里插入图片描述](https://img-blog.csdnimg.cn/2020092618341123.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80Mzc3MzIyOA==,size_16,color_FFFFFF,t_70#pic_center
Hint* You can create an empty list (a list containing 0 elements) like so:
empty_list = []

要求:【暂无】

list=[]
zig=input()
while zig !='':
    list.append(zig)
    zig=input()
i=
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值