Computer Science, asked by NicolasSam, 2 months ago

How to define the private method in Python Class?​

Answers

Answered by arunpatodi18
0

Answer:

But there is a method in Python to define Private: Add “__” (double underscore ) in front of the variable and function name can hide them when accessing them from out of class. Python doesn't have real private methods, so one underline in the beginning of a method or attribute means you shouldn't access this method.

Explanation:

pls mark brainliest

Answered by Riya1045
0

Explanation:

It is given:

Charcoal has the initial activity, which is denoted as A_{0}=15.3A

0

=15.3 disintegrations per minute per gram.

Charcoal has the half-life, T 12=5730T12=5730 years

After a few years, the charcoal’s final activity, A = 12.3 disintegrations per minute per gram

Constant of disintegration,

\lambda=0.693 \mathrm{T} 12=0.6935370 \mathrm{y}-1λ=0.693T12=0.6935370y−1

For the action to attain 12.3 disintegrations per minute per gram, let the time taken by the sample at a time of t year.

Sample’s activity,

A=A O e-\lambda tA=AOe−λt

A=A O e-0.6935730 \times tA=AOe−0.6935730×t

\Rightarrow \mathrm{t}=1804.3 \text { years }⇒t=1804.3 years

Similar questions