Let's Learn Python

Hi... everyone... I'm an external undergraduate student of the bachelor degree in IT field. I self studies about "Python" which is known as high-level programming language. Come & join with me... Let's share our knowledge.....

Friday, May 29, 2020

Type Conversion


str () Function


Let’s consider again in “right-angle triangle” program.






Output is,







Here we can pass the whole result to the print () function as one string by forgetting about the commas.
Posted by RMPTR95 at 6:43 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

RMPTR95
View my complete profile

Blog Archive

  • ►  2021 (2)
    • ►  April (2)
  • ▼  2020 (51)
    • ►  July (12)
    • ►  June (10)
    • ▼  May (23)
      • Iterations – While Loop
      • Conditional Statements
      • Comparison Operators
      • Type Conversion
      • String Operators
      • Type Casting
      • The input () function
      • Solve an Algebraic Equation
      • Miles to Kilo Meters Conversion Program
      • Shortcut Operators
      • Solve a mathematical problem in Pythagorean Theorem.
      • Variables
      • Binding of the operators
      • Arithmetic Operators – Part II
      • Arithmetic Operators – Part I
      • Boolean Values
      • Floats
      • Integers in Python
      • The print () function – Part 2
      • The print () function – Part 1
      • Lists in Python
      • Strings in Python - Part 3
      • Strings in Python - Part 2
    • ►  April (6)
Watermark theme. Powered by Blogger.