Lambo , vacation and lavish weddings in want the other two in needs
A spoofing attack. "<span>a situation in which one person or program successfully masquerades as another by falsifying data, thereby gaining an illegitimate advantage."</span>
Answer:
0.1
Explanation:
The value of amount is 100.So in the if-else-if ladder first condition in if will be checked since the amount is greater than 50 so the value of discount will become 0.1 and the execution of if else if ladder will be finish.The compiler will not be executing elseif or else.So the answer to this question is 0.1.
Hi!
In pythons <em>open() </em>function, we need to insert a file pathname and a mode. The mode is basically saying how you want to <em>open </em>the file.
Hopefully, this helps! =)
Answer:
// Python code
username=input("Type your name: ")
desc=input("Describe yourself: ")
f=open('profile.html','w')
html="<html>\n"+\
"<head>\n"+\
"</head>\n"+\
"<body>\n"+\
"<center>\n"+\
"<h1>"+username+"</h1>\n"+\
"</center>\n"+\
"<hr/>\n"+\
desc+"\n"\
"<hr/>\n"+\
"</body>\n"+\
"</html>\n"
f.write(html)
f.close()
Code for profile.html file
<html>
<head>
</head>
<body>
<center>
<h1>Jon Doe</h1>
</center>
<hr/>
A software engineer working at a startup.
<hr/>
</body>
</html>
Explanation:
- Get the name and description of user as an input.
- Write HTML content by opening the file.
- Create and develop the essential HTML syntax.
- Write the information into the HTML file and finally close the file.
- Write the HTML code in the profile.html file.