Skip to main content
dev5 logo

Main navigation

  • Themes
    • Drupal
    • WordPress
    • WHMCS
  • Graphics
    • illustrations
  • Article
  • Support
    • Documentation
    • FAQ
  • Contact
x
My Account

Article

  1. Home
  2. Article

Python Practice - Ask weight in pound and convert it to kg

dev5_admin
26 Dec 2023
python weight in pound kg
In this python practice, we will ask user to input weight in pound and convert the weight in kg.


weight_pound = input("what is your weight in pound? ")
weight_kg = int(weight_pound) * 0.45
print("Your weight in KG is " + str(weight_kg))

Tags
Python
  • Read more about Python Practice - Ask weight in pound and convert it to kg
  • Log in or register to post comments

How To Concatenate String and Integer in Python

dev5_admin
26 Dec 2023
Concatenate String and Integer in Python

Concatenation Operator in Python

In Python + is used as concatenation operator. By default, Python supports string concatenation using + operator. And if you try to concatenate string and integer using + operator, it will throw some runtime error.

Tags
Python
  • Read more about How To Concatenate String and Integer in Python
  • Log in or register to post comments

Dev5 Modern CSS Reset

dev5_admin
26 Dec 2023
Dev5 Modern CSS Reset

CSS reset is the first thing I add in my css file in any web development project. I have been using necolas Normalize.css for years. But now modern browsers are much smarter.

Below is my own css reset inspired by Andy Bell's Modern CSS Reset.

Tags
CSS
  • Read more about Dev5 Modern CSS Reset
  • Log in or register to post comments

Pagination

  • First page « First
  • Previous page ‹‹
  • Page 1
  • Page 2
  • Page 3
  • Current page 4

Category

  • Code Editor
  • CSS
  • JavaScript
  • Python
  • WordPress
  • Drupal

Themes License | Refund Policy | Support Policy | Privacy Policy | Terms and Conditions | Sitemap

© 2026 Dev5, All rights reserved.