Python-26~30

---26---

Question:

>Define a function which can compute the sum of two numbers.

Solution:


---27---

Question:

>Define a function that can convert a integer into a string and print it in console.

Solution:


---28---

Question:

>Define a function that can receive two integer numbers in string form and compute their sum and then print it in console.

Solution:


---29---

Question:

>Define a function that can accept two strings as input and concatenate them and then print it in console.

Solution:


---30---

Question:

>Define a function that can accept two strings as input and print the string with maximum length in console. If two strings have the same length, then the function should print all strings line by line.

Solution:

有点问题~

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。