HackerRank 30-days Python

This post only records the problems I made mistakes.

Intro to Conditional Statements

Task: Given an integer,n, perform the following conditional actions:

  • If is odd, print Weird
  • If is even and in the inclusive range of to , print Not Weird
  • If is even and in the inclusive range of to , print Weird
  • If is even and greater than , print Not Weird

Complete the stub code provided in your editor to print whether or not is weird.

Read More...
  • Copyrights © 2020-2021 By Yang Yue
  • Visitors: | Views:

请我喝杯奶茶吧~