Уведомления

Группа в Telegram: @pythonsu

#1 Май 19, 2017 17:27:09

victorgrant
Зарегистрирован: 2017-05-17
Сообщения: 2
Репутация: +  0  -
Профиль   Отправить e-mail  

Simple Python

I have only just started studying computer science at A-Level and I have been set this task in python. I know it probably seems easy but I am very knew to this and am unsure of how to go about doing it please help.

Write a program that gets the user to type in how many bits
they are using and will then tell them what the value of the
left-most column heading will be in two's complement e.g. if
they type in 4 the program should output -8.

Thanks.
I didn't find the right solution from the Internet.
References:http://www.python-forum.org/viewtopic.php?f=10&t=21155

Explainer Video Example

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version