资源算法ornery-ternary

ornery-ternary

2020-02-12 | |  55 |   0 |   0

Ornery Ternary

Do not use if for any of the below!

  1. Write a function called isHot that returns the string 'Yes, it is indeed hot.' if the temperature is at or above 80, and the string 'No, it is not hot.' otherwise.

  2. Write a function called helloThere that returns a short greeting given a name with more than 5 characters and a longer greeting given a name of 5 characters or fewer. The short greeting should be the string 'Hi' and the given name, separated by a comma and a space. The long greeting should be the string 'Hello' and the given name, separated by a comma and a space.

  3. Write a function called goodbyeYou that, given a name, returns the string Goodbye followed by the name, with a comma and space in between. If no name is given, substitute the string 'stranger' for their name.


上一篇:include_ornegi

下一篇:aktivite-akis-ornegi

用户评价
全部评价

热门资源

  • DuReader_QANet_BiDAF

    Machine Reading Comprehension on DuReader Usin...

  • ETD_cataloguing_a...

    ETD catalouging project using allennlp

  • allennlp_extras

    allennlp_extras Some utilities build on top of...

  • allennlp-dureader

    An Apache 2.0 NLP research library, built on Py...

  • honk-honk-motherf...

    honk-honk-motherfucker