Python-26~30

2020-09-25  本文已影响0人  AoEliauk

---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:

有点问题~

上一篇 下一篇

猜你喜欢

热点阅读