CodeSolved

Solved Programming Questions & Exercises

New Year's congratulations to the style of programmers

Practice Easy 924/ Download 1439 Views

Write a program to congratulate the programmers in a creative way


This is a #van exercise so there is no right or wrong answer and there is no need to work with the code you write. Just make a little creativity :)

14 Answers

This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
This answer is only visible to premium members
This answer is only visible to premium members
This answer is only visible to premium members
let msg = 'error'
alert(msg) 
This answer is only visible to premium members
This answer is only visible to premium members

This answer is only visible to premium members

Subscription is currently unavailable.
inday="noroz"
def saleno():
    if inday=="noroz":
        print("happy new year dear programer")
        print("i hope you  succeed"+ "❤️")
    else:
        print("ok")
saleno()
Hana88 Download Python
note="happy new year♡"
count=0
for i in range(100):
	count+=1
	print(f"{count}.{note}")
Roghaye.m Download Python

import pyttsx3
from  tts import text_to_speech
# Text_to_peche content
# As that:
#def text_to_speech(text):
        # engine=pyttsx3.init()
        # # speed with rate
        # engine.setProperty('rate',150)
        # # volume
        # engine.setProperty('volume',0.8)
        # engine.say(text)
        # engine.runAndWait()
print(f"Happy new year \n Let's have good time

print('Sal No Mobarak')
print('Omid Varam Sal Khobi Dashte Bashid')

0   1     I  I    /  _____
1   1     I   I  /  /____
1   11111 I    I/  /____

   I   /      0 0       1     1
   I  /      0   0      1     1
   I /      0    0      1     1
    1       0    0      1     1
    1       0    0      1     1
    1         0 0       1_____1
import cowsay
a=input("Please,enter year(AD year):\n")
b=input("Please,enter your name:\n")
i1=1912
while i1<=3000 :
    if int(a)==i1 :
        m1=cowsay.get_output_string("tux",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m1)
        break
    else:
        i1+=12
        continue
i2=1913
while i2<=3000 :
    if int(a)==i2 :
        m2=cowsay.get_output_string("cow",f"Happy New Year,dear {b},I hope you have a year full of health and happiness :)")
        print(m2)
        break
    else:
        i2+=12
        continue
i4=1914
while i4<=3000 :
    if int(a)==i4 :
        m4=cowsay.get_output_string("meow",f"Happy New Year, dear {b}, I hope you have a year full of health and happiness :)")
        print(m4)
        break
    else:
        i4+=12
        continue
i5=1915
while i5<=3000 :
    if int(a)==i5 :
        m5=cowsay.get_output_string("turtle",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m5)
        break
    else:
        i5+=12
        continue
i6=1916
while i6<=3000 :
    if int(a)==i6 :
        m6=cowsay.get_output_string("dragon",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m6)
        break
    else:
        i6+=12
        continue
i7=1917
while i7<=3000 :
    if int(a)==i7 :
        m7=cowsay.get_output_string("octapus",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m7)
        break
    else:
        i7+=12
        continue
i8=1918
while i8<=3000 :
    if int(a)==i8 :
        m8=cowsay.get_output_string("kitty",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m8)
        break
    else:
        i8+=12
        continue
i9=1919
while i9<=3000 :
    if int(a)==i9 :
        m9=cowsay.get_output_string("cheese",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m9)
        break
    else:
        i9+=12
        continue
i10=1920
while i10<=3000 :
    if int(a)==i10 :
        m10=cowsay.get_output_string("daemon",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m10)
        break
    else:
        i10+=12
        continue
i21=1921
while i21<=3000 :
    if int(a)==i21 :
        m21=cowsay.get_output_string("turkey",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m21)
        break
    else:
        i21+=12
        continue
i22=1922
while i22<=3000 :
    if int(a)==i22 :
        m22=cowsay.get_output_string("fox",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m22)
        break
    else:
        i22+=12
        continue
i23=1923
while i23<=3000 :
    if int(a)==i23 :
        m23=cowsay.get_output_string("pig",f"Happy New Year, dear {b} , I hope you have a year full of health and happiness :)")
        print(m23)
        break
    else:
        i23+=12
        continue

Zaras Download Python
def year():
    print("happy new year")
    print("----------------")
    print("happy day")
    print("------------------")
    print("Happy Programmer's Day")
    print("--------------------")
    print("I hope you have a good and happy year")
year()                    
Sumy.amiri Download Python
salnow = input ("Nam khod ra vared konid")
print("salnow mobark bashe",salnow)

Amirr Download Python
<< Previous page 1 2 Next page >>

Submit answer

Submitting answers is currently unavailable.

×
×
Close