H
H
Herman Hacker2019-12-17 21:22:03
JavaScript
Herman Hacker, 2019-12-17 21:22:03

What to do with None?

Guys why when you run this program it pops out None
def pogoda(gorod):
print("It's 30 degrees Celsius right now!")
s = input ("Enter 'pogoda' : ")
if s == "pogoda":
print(pogoda(" city"))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
0
0xD34F, 2019-02-04
@mk3mk

const divs = document.querySelectorAll('.div1');

let index = 0;

setInterval(function() {
  divs[index].classList.remove('red');
  index = (index + 1) % divs.length;
  divs[index].classList.add('red');
}, 1000);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question