Python Forum
Programming (identifier, literal and function call)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming (identifier, literal and function call)
#5
thank you for your reply,

print(round(float(input('Enter a decimal number >'))))
print(bin(int(input('Enter it again >'))))

I enter this code and I got the result I should have:
Enter an integer >45
45
Enter it again >45
0b101101

And it is ok!

Thank you!!!!
Reply


Messages In This Thread
RE: Programming (identifier, literal and function call) - by ledangereux - Aug-19-2018, 04:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  can you call a function from a list? KEYS 20 6,392 Nov-10-2020, 06:36 PM
Last Post: KEYS
  Verilog HDL Programming to Python Programming? noobcoder 1 3,074 Jul-18-2019, 09:28 PM
Last Post: nilamo
  Calling function-- how to call simply return value, not whole process juliabrushett 2 3,250 Jul-01-2018, 01:17 AM
Last Post: juliabrushett
  Function call Antonio_Gallardo 3 3,239 Dec-29-2017, 11:13 PM
Last Post: Larz60+
  Error is function call Oracle_Rahul 2 3,196 Sep-21-2017, 06:04 PM
Last Post: nilamo
  Call a code written in Fortran programming language in RhinoPython. TOM 2 4,647 Oct-17-2016, 09:29 AM
Last Post: TOM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020