Предмет: Информатика, автор: soon1994

какие функции используют в языке питон для преобразования числового значения в текстовое и обратно ?


efimkingleb: ты шаришь питон? мне просто надо задачу решить срочняк

Ответы

Автор ответа: alekssm2003
0

Ответ:

преобразование целого числа в число с плавающей точкой

num_int = 123

num_float = 1.23

num_new = num_int + num_float

print("тип данных num_int:",type(num_int))

print("тип данных num_float:",type(num_float))

print("значение num_new:",num_new)

print("тип данных num_new:",type(num_new))

Объяснение:

Похожие вопросы
Предмет: Английский язык, автор: Asya848
A. Complete the sentences using the verb in brackets in the Past Simple.
I _______________________ (move) here nine years ago.
I _______________________ (start) skating four years ago.
He _______________________ (meet) her in June.
You _______________________ (not buy) the present yesterday.
Mr Jones _______________________ (live) here six months ago.
I _______________________ (leave) that school four years ago.
He _______________________ (begin) working in Ireland in 1999.
Last year he _______________________ (teach) children how to play the guitar.
_______________________ (they / see) Riverdance when they were in Ireland?
He _______________________ (change) his job in February and is now a policeman.
B.
Choose the correct verb and change it into the 
Past Simple.
watch
go
eat
make
do
give
study
have
be
speak
 ____________you ___________ to a party last night?
My mother ______________________ to me about Harry Potter’s new adventure.
My parents _______________________ me a new T-shirt yesterday.
I _______________________ a great film last night.
Our school party _______________________ last Friday. (neg.)
Yesterday, I _______________________ for my English test.
Last Sunday I _______________________ lunch with my girlfriend.
I _______________________ too much chocolate last night.
They _______________________ their homework this morning. (neg.)
My mother _______________________ a cake yesterday morning.
C. Ask the questions.
1. _________________________________________________________? He bought that bike last weekend.
2. _________________________________________________________?The tourists had dinner in a famous American restaurant.
3. _________________________________________________________?No, he didn’t. He didn’t like Italian food.
4. _________________________________________________________?They played computer games in the library.
5. _________________________________________________________?Yes, it was. The hotel was very good.watchgoeatmakedogivestudyhavebespeak