MulaiMulai sekarang secara gratis

Equality across types

The equality operator == can be used to test if two variables have the same value. What is the result of using the equality operator to compare a variable closing_price, which holds the floating point value for a stocks closing price, to the variable closing_time, which holds a datetime object with the time of closing as a value?

Latihan ini adalah bagian dari kursus

Intermediate Python for Finance

Lihat Kursus

Latihan interaktif praktis

Ubah teori menjadi tindakan dengan salah satu latihan interaktif kami.

Mulai berolahraga