Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Programming Diversions
Search Coderanch
Advance search
Google search
Register / Login
Win a copy of
Secure Financial Transactions with Ansible, Terraform, and OpenSCAP
this week in the
Cloud/Virtualization
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Jeanne Boyarsky
Bear Bibeault
Sheriffs:
Rob Spoor
Henry Wong
Liutauras Vilda
Saloon Keepers:
Tim Moores
Carey Brown
Stephan van Hulst
Tim Holloway
Piet Souris
Bartenders:
Frits Walraven
Himai Minh
Jj Roberts
Forum:
Programming Diversions
Happy valentines day
Randy Tong
Master Rancher
Posts: 572
9
I like...
posted 2 months ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
Use Python to tell your crush you like her/him
import stringl = string.ascii_letterss = []s.append(l[34])s.append(l[11])s.append(l[14])s.append(l[21])s.append(l[4])s.append(l[24])s .append(l[14])s.append(l[20])s.insert(1, " ")s.insert(6, " ")string = "".join(s)print(string) # I love you
Below are ASCII code
# 73、76、79、86、69、85 ASCII print(chr(73)) # I print(chr(76)) # L print(chr(79)) # O print(chr(86)) # V print(chr(69)) # E print(chr(85)) # U
Code below will print love shape
print('\n'.join([''.join([('Love'[(x-y) % len('Love')] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-30, 30)]) for y in range(30, -30, -1)]))
Output
Press ctrl+f then enter 9 :
99669999996669999996699666699666999966699666699 99699999999699999999699666699669966996699666699 99669999999999999996699666699699666699699666699 99666699999999999966666999966699666699699666699 99666666999999996666666699666699666699699666699 99666666669999666666666699666669966996699666699 99666666666996666666666699666666999966669999996
Output
Life is but a BREATH
Frits Walraven
Creator of Enthuware JWS+ V6
Posts: 3390
311
I like...
posted 1 month ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
Congratulations Randy Tong,
Your question has made it to our
Journal
Have a
Cow
!
Randy Tong
Master Rancher
Posts: 572
9
I like...
posted 2 weeks ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks
Life is but a BREATH
If we don't do the shopping, we won't have anything for dinner. And I've invited this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Need help with Loops
javax.xml.ws.WebServiceException: Failed to access the WSDL
http://xml.apache.org/axis/ HttpErrorCode:401
Project Euler problems with Scala
Need Help With For Loops
More...