Codes: Difference between revisions

From XPUB & Lens-Based wiki
(Created page with ""hello {}".format(name) f"hello {name}" print ("hello python") n = "your name" "Hello" + x <b>loops</b> for x in range(10): print ("hello python") print (x) x = 1...")
 
No edit summary
Line 18: Line 18:




<div style="background-color:#4E5EC5; padding: 3px; text-decoration:none;"></div><br>
<div style="background-color:#f0b5aa; padding: 3px; text-decoration:none; width = 500px"></div><br>

Revision as of 17:28, 15 October 2020

"hello {}".format(name) f"hello {name}" print ("hello python")

n = "your name" "Hello" + x

loops

for x in range(10):

   print ("hello python")
   print (x)

x = 1 while x<10:

   print (f"x is {x}")
   x = x + 1