首页 新闻 聚焦 科技 财经 创业 综合 图片 视频

IT界

旗下栏目: 行业 生态 IT界 创新

代做COMP9021程序、Python语言程

来源:互联网 发布时间:2021-06-12
代做COMP9021程序、Python语言程
QUIZ 1
COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 0 1
Here are the generated widths:
[7]
Here are the generated symbols:
['&']
Here are the Generated repetitions:
[1]
Here is the input as a pattern:
7&1
Here is the input as a dictionary:
(7, 1): '&'
Here is the input as an amazing picture:
|&&&&&&&|
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 10 2
Here are the generated widths:
[1, 1]
Here are the generated symbols:
['&', '$']
Here are the generated repetitions:
[8, 8]
Here is the input as a pattern:
1&81$8
Due to identical pairs of numbers, the input cannot be represented as a dictionary.
Here is the input as an amazing picture:
|&|&|&|&|&|&|&|&|
|$|$|$|$|$|$|$|$|
Date: Trimester 2, 2021.
2 COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 20 3
Here are the generated widths:
[3, 6, 1]
Here are the Generated symbols:
['%', '+', '&']
Here are the generated repetitions:
[2, 3, 7]
Here is the input as a pattern:
3%26+31&7
Here is the input as a dictionary:
(3, 2): '%', (6, 3): '+', (1, 7): '&'
Here is the input as an amazing picture:
|%%%|%%%|
|++++++|++++++|++++++|
|&|&|&|&|&|&|&|
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 50 4
Here are the generated widths:
[8, 4, 2, 4]
Here are the generated symbols:
['%', '*', '-', '-']
Here are the generated repetitions:
[6, 6, 6, 2]
Here is the input as a pattern:
8%64*62-64-2
Here is the input as a dictionary:
(8, 6): '%', (4, 6): '*', (2, 6): '-', (4, 2): '-'
Here is the input as an amazing picture:
|%%%%%%%%|%%%%%%%%|%%%%%%%%|%%%%%%%%|%%%%%%%%|%%%%%%%%|
|****|****|****|****|****|****|
|--|--|--|--|--|--|
|----|----|
QUIZ 1 3
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 100 5
Here are the generated widths:
[3, 3, 7, 9, 8]
Here are the generated symbols:
['*', '&', '-', '@', '%']
Here are the Generated repetitions:
[8, 6, 2, 2, 1]
Here is the input as a pattern:
3*83&67-29@28%1
Here is the input as a dictionary:
(3, 8): '*', (3, 6): '&', (7, 2): '-', (9, 2): '@', (8, 1): '%'
Here is the input as an amazing picture:
4 COMP9021 PRINCIPLES OF PROGRAMMING
$ python3 quiz_1.py
Enter two integers, the second one being strictly positive: 200 10
Here are the generated widths:
[1, 3, 1, 1, 8, 4, 7, 8, 8, 3]
Here are the generated symbols:
['$', '+', '*', '*', '*', '@', '^', '&', '%', '#']
Here are the generated repetitions:
[1, 5, 3, 5, 4, 5, 2, 4, 2, 8]
Here is the input as a pattern:
1$13+51*31*58*44@57^28&48%23#8
Due to identical pairs of Numbers, the input cannot be represented as a dictionary.
Here is the input as an amazing picture:
 
请加QQ:99515681 或邮箱:99515681@qq.com   WX:codehelp
  免责声明:珠穆朗玛网对于有关本网站的任何内容、信息或广告,不声明或保证其正确性或可靠性,用户自行承担使用网站信息发布内容的真假风险。
责任编辑:珠穆朗玛网