Posts by Lucas Braga • 99 points
7 posts
-
1
votes1
answer973
viewsQ: Insert html code into markdown file
It is possible to use HTML to supply what markdown does not support in its syntax? For example, insert a video tag: <div class="video"> <iframe width="854" height="480"…
-
0
votes2
answers474
viewsQ: Print of the result of a ternary operator
How to display the output of a ternary operation next to a string, using Python? I intend to check if the size of the name typed is larger than "Braga". For this condition, I want to use the ternary…
-
3
votes1
answer84
viewsQ: Eliminate code redundancy in a while loop
In this example: . Request today’s date via a form. . Check if typed in dd/mm/yyyy format. . Compare to current system date from datetime import date def verificacaoData(): dataForm = input('Digite…
-
5
votes1
answer87
viewsQ: Why does "int('1111', 2)" return "15" in Python?
Why from this exit? Code: a = int('1111', 2) print(a) Exit: 15
pythonasked Lucas Braga 99 -
0
votes2
answers3130
viewsA: Python - Module: Tkinter - window manipulation
Change the title of the window: janela.title("Janela Principal") Change the background inside the window: janela["bg"] = "green" Now make the color changes in the Application Title Bar and corner…
-
0
votes3
answers1636
viewsA: Start numeric variable with null value in Python
I was able to solve the problem by requesting the note before the while and inside the body of while requesting again, in case the value is outside the specified range. nota = float(input("Digite…
-
0
votes3
answers1636
viewsQ: Start numeric variable with null value in Python
Browsing the Python Brasil site, I decided to do exercise 1 of the Repetition Structure list: "Make a program that asks for a note, between zero and ten. Display a message if the value is invalid…