高级编程作业 7章
2018-03-28 13:06
330 查看
#7.3 num = input('input an int num ') num = int(num) if num%10 == 0: print('It is a multiple of 10.') else: print('It not is a multiple of 10.') #7.4 pizza = [] while True: pei = input('Input your choice ') if(pei == 'quit'): break else: pizza.append(pei) print('We will add it in') #print(pizza) #7.5 sand_order = ['beef','apple','egg','cheese'] fin_sand = [] while sand_order: sand = sand_order.pop() fin_sand.append(sand) print('I made your '+sand+' sandwich') print(fin_sand)
相关文章推荐
- 2018.3.8 高级编程作业
- 2018.3.12 高级编程作业
- Internet高级编程作业:用pipe, fork实现popen
- 高级编程作业——2.1-2.10
- 高级编程 python 第六章作业
- 进程编程1 – Unix环境高级编程7章读书笔记
- 第七次高级编程作业
- Internet高级编程作业:Producer-consumer problem implemented by semaphore
- 进程编程1 – Unix环境高级编程7章读书笔记
- 高级编程基础第二次作业——列表的学习
- 高级编程基础第四章作业
- Boolan C++面向对象高级编程(上)第一周作业
- 进程编程1 – Unix环境高级编程7章读书笔记
- 第六次高级编程高级作业
- 进程编程1 – Unix环境高级编程7章读书笔记
- 进程编程1 – Unix环境高级编程7章读书笔记
- 高级编程 python 第九章作业
- 2018.4.4 高级编程作业
- 高级编程作业第十章
- 进程编程1 – Unix环境高级编程7章读书笔记