Eating yam and pumpkin together is not harmful and can provide the body with appropriate calories and carbohydrates and other nutrients. Every 100 grams of yam contains 57 calories, of which 12.4 grams of carbohydrates, 1.9 grams of protein, 0.2 grams of fat, while containing some vitamins and minerals. Pumpkin has 23 calories per 100 grams, which is a relatively low-calorie vegetable, with 5.3 grams of carbohydrates, 0.7 grams of protein, almost no fat, lower dietary fiber content, and contains more carotene. So the main source of calories for both are carbohydrates, of which the yam has a higher carbohydrate content, and if you consume too much, you need to reduce the intake of the corresponding staple food. Yam and pumpkin are nutritionally similar, and together they do not undergo special chemical reactions that produce substances harmful to the human body. In real life, people often combine the two for cooking. So don’t worry about their safety, you can feel free to eat.