Does lifting weights burn calories more than cardio?

Does lifting weights burn calories? In the real world as we know it was eating diets are sold to you on the idea of eating junk and at same time burn calories a.s.a.p. LOSE FAT. It’s difficult...