No products in the cart.

Correct way to declare a variable …

CBSE, JEE, NEET, CUET

CBSE, JEE, NEET, CUET

Question Bank, Mock Tests, Exam Papers

NCERT Solutions, Sample Papers, Notes, Videos

Correct way to declare a variable x of float data type in python:
  • 1 answers

2 years, 7 months ago

<font face="Times New roman">Correct ways:
$$\tt x = float(2.5)$$
$$\tt x = 2.5$$
If you want to check whether its correct, just write this statement and run it:
$$\tt print(type(x))$$
http://mycbseguide.com/examin8/

Related Questions

What are called tokens
  • 0 answers
Whate is global scope
  • 1 answers

myCBSEguide App

myCBSEguide

Trusted by 1 Crore+ Students

Test Generator

Test Generator

Create papers online. It's FREE.

CUET Mock Tests

CUET Mock Tests

75,000+ questions to practice only on myCBSEguide app

Download myCBSEguide App