Run Program ❯
Python Home
❯
Run Code
Change Orientation
# Integer (int) a = 10 print("Integer value:", a) print("Type of a:", type(a)) # Floating-point number (float) b = 3.14 print("\nFloat value:", b) print("Type of b:", type(b)) # Complex number (complex) c = 2 + 3j print("\nComplex number:", c) print("Type of c:", type(c)) print("Real part:", c.real) print("Imaginary part:", c.imag)