Always get printed value of “None”

后端 未结 4 428
小鲜肉
小鲜肉 2021-01-28 14:32

Alright so here is my code, I get the result I want but I keep getting the \"None\" value under it. How do I eliminate the \"None\" value?

n = input(\"What day o         


        
4条回答
  •  萌比男神i
    2021-01-28 14:51

    This should do the trick:

    days = ["Sunday", "Monday", "Tuesday", "Wednesday",
            "Thursday", "Friday", "Saturday"]
    print days[(n+r) % 7]
    

提交回复
热议问题