Five variables are given. Without changing them, print the name of the type of each one, one per line, using type(x).__name__. Expected output: str int float bool str Notice the last one: why is “3.5” a str?
Create these four variables: name — a string with your name age — an integer height — a float, for example 1.75 is_student — a boolean Then print the type of height. The output must be: <class ‘float’>
This program crashes because two lines contain mistakes. Do not fix or delete them — comment out the two broken lines so that the rest of the program runs and prints: Start Price: 45 End
This program prints three lines. Use a comment so that only Line 1 and Line 3 are printed: Line 1 Line 3 Do not delete any line — comment it out instead. Then add your own comment at the top …
This weather program has three syntax mistakes: a missing colon, a wrong capital letter and wrong indentation. Fix all three so it prints: Hot day in Massawa Stay cool Forecast finished
This program has an IndentationError. Press Run to see it. Fix the code so it prints: You are an adult Welcome! Only the first message belongs inside the if block.
Selam buys 3 notebooks at 25 Nakfa each and 2 pens at 10 Nakfa each. She pays with 200 Nakfa. Print three lines: the cost of the notebooks, the total cost, and her change. Let Python do every calculation — …
Use print() to show the results of these three calculations, each on its own line: 7 * 6 100 – 58 2 ** 10 (2 to the power of 10) Expected output: 42 42 1024
Print a three-line introduction card. The middle line must use one print() with two values separated by a comma: the text “Year:” and the number 2026 (without quotes). Expected output: === Student Card === Year: 2026 ====================
Write a program that prints exactly these two lines: Hello, World! I am learning Python Use one print() for each line. Check capital letters and punctuation carefully.
