Jugwancommunication

Follow Us:

  • Home
  • News
  • FreeSoftware
  • OperatingSystem
  • ComptureLanguage
  • _Python
  • Faridabad Job's
HomePython

6 #python free course

byYogesh Rajput -April 06, 2021
0

6 #python free course:

Python Free Course


# Python Number
X = 1 # Int
Y = 2.8 # Float
Z = 1j # Complex
# Two Verify Types
print(type(X))
print(type(Y))
print(type(Z))
# Int, or integer, is a whole number, positive or negative, without decimals, of unlimited length.
x = 1
y = 2642375356486759786
z = -6897698
print(type(x))
print(type(y))
print(type(z))
# Float, or "floating point number" is a number, positive or negative, containing one or more decimals.
x = 1.9900
y = 2.879
z = -60.678
print(type(x))
print(type(y))
print(type(z))
# Float,can also be scientific or "floating point number" is a number, positive or negative, containing one or more decimals.
x = 1e9900
y = 2E879
z = -60.67e8
print(type(x))
print(type(y))
print(type(z))
#Complex numbers are written with a "j" as the imaginary part
x = 1 + 5j
y = 5j
z = -5j
print(type(x))
print(type(y))
print(type(z))
#Type conversion
#you can type one type to anouthor
x1 = 1
y1= 5.5
z1 = 5
a = float(x1)
b = int(y1)
c = complex(z1)
print(a)
print(b)
print(c)
print(type(a))
print(type(b))
print(type(c))
Tags: Python
  • Share on Facebook
  • Share on Twitter
You might like

If you have any doubts. Please Let me Know

Post a Comment

If you have any doubts. Please Let me Know

Post a Comment (0)

Previous Post Next Post

Follow Us

Advertisement

Main Tags

  • 16 GB RAM
  • 512GB SSD
  • 8 GB RAM
  • BestComputerCourses
  • Dell MS116 1000DPI USB Wired Optical Mouse
  • Excel
  • faridabadjob
  • Free_Software
  • HP 15 (2021) Thin & Light 11th Gen Core i5 Laptop
  • HP Pavilion (2021) Thin & Light 11th Gen Core i5 Laptop
  • Iris Xe Graphics
  • Java
  • JavaScript
  • MSOffice
  • Python
  • ShortCode
  • windows
  • Wired Keyboard and Mouse Combo with 104 Keys and a USB Mouse with

Featured post

Yogesh RajputSeptember 18, 2021

Advertisement

Tags

  • 16 GB RAM
  • 512GB SSD
  • 8 GB RAM
  • BestComputerCourses
  • Dell MS116 1000DPI USB Wired Optical Mouse
  • Excel
  • faridabadjob
  • Free_Software
  • HP 15 (2021) Thin & Light 11th Gen Core i5 Laptop
  • HP Pavilion (2021) Thin & Light 11th Gen Core i5 Laptop
  • Iris Xe Graphics
  • Java
  • JavaScript
  • MSOffice
  • Python
  • ShortCode
  • windows
  • Wired Keyboard and Mouse Combo with 104 Keys and a USB Mouse with

Pages

  • Terms and Conditions
  • Contact Us
  • JavaScriptTutorial
  • Today News

Advertisement

Contact Form