Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!C++:#include <iostream> using namespace std; int main() { cout << "Hello everyone"; return 0; }
<span>Hello Ash!</span>
HTML:<span>Hello Ash!</span>
C Fortran
PROGRAM HELLO
WRITE (*,100)
STOP
100 FORMAT (' Hello Malcolm! ' /)
END
// Hello World in the Medal of Honor Allied Assault scripting language
iprintln "Hello World!"
C:#include <stdio.h> int main () { int message[] = {72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33}; int limit = sizeof (message) / sizeof (message[0]); int loop; for (loop = 0; loop < limit; loop++) { printf("%c", message[loop]); } printf("\n"); return 0; }
yourname = input("What is your name? [ Type in & press ENTER KEY ]\n")
if yourname and len(yourname) > 0:
print("Hello " + yourname)
else:
print("Hey you!")
JavaScript:console.log("Hello Code Forum:)");
from sys import stdout
from time import sleep
# Function to animate the printing of text.
def printf(text, pause=0.05):
for character in text:
stdout.write(character)
stdout.flush()
sleep(pause)
printf("Hello, Apollyon.")
import json
import urllib.request
import time
import requests
from bs4 import BeautifulSoup
from geopy.geocoders import Nominatim
import datetime
import timezonefinder, pytz
from datetime import datetime
def CodeForumName():
#Get the name of the person Above me on CodeForums
response = requests.get("https://codeforum.org/threads/say-hello-in-a-coding-language.915/page-6")
if response.status_code in [200, 404]:
soup = BeautifulSoup(response.text, 'lxml')
Name = soup.find(id='js-post-13593')['data-author']
return Name
def GetCrew():
#Get who is currently on the ISS
url = "http://api.open-notify.org/astros.json"
response = urllib.request.urlopen(url)
result = json.loads(response.read())
AmountOfAstronauts = result["number"]
people = result["people"]
return AmountOfAstronauts,people
def GetISSLocation():
while True:
try:
# initialize Nominatim API
geolocator = Nominatim(user_agent="geoapiExercises")
# load the current status of the ISS in real-time
url = "http://api.open-notify.org/iss-now.json"
response = urllib.request.urlopen(url)
result = json.loads(response.read())
# Extract the ISS location
location = result["iss_position"]
Latitude = location['latitude']
Longitude = location['longitude']
location = geolocator.reverse(Latitude + "," + Longitude)
if location is not None:
print("Latitude is -",Latitude,"Longitude is -",Longitude,"That puts it just above",location)
return Latitude,Longitude
else:
print("Latitude is -",Latitude,"Longitude is -",Longitude,"Not above anywhere yet, lets keep looping untill we are" )
except:
continue
def GetTimeAndDate(Cords):
tf = timezonefinder.TimezoneFinder()
# From the lat/long, get the tz-database-style time zone name (e.g. 'America/Vancouver') or None
timezone_str = tf.certain_timezone_at(lat=float(Cords[0]), lng=float(Cords[1]))
if timezone_str is None:
print("Could not determine the time zone")
else:
# Display the current time in that time zone
timezone = pytz.timezone(timezone_str)
dt = datetime.utcnow()
print("The time in %s is %s" % (timezone_str, dt + timezone.utcoffset(dt)))
Crew = GetCrew()
print("Hey There" , CodeForumName(),". So i was trying to think of a way to beat my joke hello. "
"\nI think i have done it :D How about if we see who is currently on the ISS, its Cords and we see that time it is. "
"\nSit back and enjoy the ride :D"
"\nAt the moment there is ",Crew[0],"On board and they are :-\n")
for p in Crew[1]:
print(p['name'])
print("\nNot quite done yet :D Lets see where the ISS currently is, shall we :)")
Location = GetISSLocation()
GetTimeAndDate(Location)
print("I think this beats my joke hello from before :D, Dont you agree")
Nice code. I've made my own piece of code that'll automatically get the username of the last person to comment, and print it out with an animation.Python:import json import urllib.request import time import requests from bs4 import BeautifulSoup from geopy.geocoders import Nominatim import datetime import timezonefinder, pytz from datetime import datetime def CodeForumName(): #Get the name of the person Above me on CodeForums response = requests.get("https://codeforum.org/threads/say-hello-in-a-coding-language.915/page-6") if response.status_code in [200, 404]: soup = BeautifulSoup(response.text, 'lxml') Name = soup.find(id='js-post-13593')['data-author'] return Name def GetCrew(): #Get who is currently on the ISS url = "http://api.open-notify.org/astros.json" response = urllib.request.urlopen(url) result = json.loads(response.read()) AmountOfAstronauts = result["number"] people = result["people"] return AmountOfAstronauts,people def GetISSLocation(): while True: try: # initialize Nominatim API geolocator = Nominatim(user_agent="geoapiExercises") # load the current status of the ISS in real-time url = "http://api.open-notify.org/iss-now.json" response = urllib.request.urlopen(url) result = json.loads(response.read()) # Extract the ISS location location = result["iss_position"] Latitude = location['latitude'] Longitude = location['longitude'] location = geolocator.reverse(Latitude + "," + Longitude) if location is not None: print("Latitude is -",Latitude,"Longitude is -",Longitude,"That puts it just above",location) return Latitude,Longitude else: print("Latitude is -",Latitude,"Longitude is -",Longitude,"Not above anywhere yet, lets keep looping untill we are" ) except: continue def GetTimeAndDate(Cords): tf = timezonefinder.TimezoneFinder() # From the lat/long, get the tz-database-style time zone name (e.g. 'America/Vancouver') or None timezone_str = tf.certain_timezone_at(lat=float(Cords[0]), lng=float(Cords[1])) if timezone_str is None: print("Could not determine the time zone") else: # Display the current time in that time zone timezone = pytz.timezone(timezone_str) dt = datetime.utcnow() print("The time in %s is %s" % (timezone_str, dt + timezone.utcoffset(dt))) Crew = GetCrew() print("Hey There" , CodeForumName(),". So i was trying to think of a way to beat my joke hello. " "\nI think i have done it :D How about if we see who is currently on the ISS, its Cords and we see that time it is. " "\nSit back and enjoy the ride :D" "\nAt the moment there is ",Crew[0],"On board and they are :-\n") for p in Crew[1]: print(p['name']) print("\nNot quite done yet :D Lets see where the ISS currently is, shall we :)") Location = GetISSLocation() GetTimeAndDate(Location) print("I think this beats my joke hello from before :D, Dont you agree")
Hey There didlly . So i was trying to think of a way to beat my joke hello.
I think i have done it 😀 How about if we see who is currently on the ISS, its Cords and we see that time it is.
Sit back and enjoy the ride 😀
At the moment there is 10 On board and they are :-
Mark Vande Hei
Pyotr Dubrov
Anton Shkaplerov
Zhai Zhigang
Wang Yaping
Ye Guangfu
Raja Chari
Tom Marshburn
Kayla Barron
Matthias Maurer
Not quite done yet 😀 Lets see where the ISS currently is, shall we 🙂
Latitude is - -24.7295 Longitude is - -68.1833 That puts it just above Municipio de Tolar Grande, Los Andes, Salta, Argentina
The time in America/Argentina/Salta is 2022-01-01 22:37:16.066112
I think this beats my joke hello from before 😀, Dont you agree
from sys import stdout
from time import sleep
from bs4 import BeautifulSoup
from requests import get
def printf(text: str, pause=0.05):
for character in text:
stdout.write(character)
stdout.flush()
sleep(pause)
def latest_user():
# The page number is 10000 since CodeForum automatically redirects back to the last page. This means the HTML received will always be the HTML from the latest page.
soup = BeautifulSoup(get("https://codeforum.org/threads/say-hello-in-a-coding-language.915/page-10000").text, "html.parser")
# Get the username of the last user to reply.
return [i.attrs["href"] for i in soup.find_all("a", class_="avatar avatar--m")][-1].replace("/members/", "").replace("/", "").split(".")[0]
# '\033[3m' is the ANSI Escape Sequence for underlined, and '\u001b[0m' is the ANSI Escape Sequence for reset all formatting.
printf(f"Hello, \033[3m{latest_user()}.\u001b[0m")
++++++++[>+>++>+++>++++>+++++>++++++>+++++++>++++++++>+++++++++>++++++++++>+++++++++++>++++++++++++>+++++++++++++>++++++++++++++>+++++++++++++++>++++++++++++++++<<<<<<<<<<<<<<<<-]>>>>>>>>>.<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>----.++++<<<<<<>>>>.<<<<>>>>>>>>>>---.+++<<<<<<<<<<>>>>>>>>>>>>+.-<<<<<<<<<<<<>>>>>>>>>>>>>>+++.---<<<<<<<<<<<<<<>>>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<<<>>>>>>>>>>>>>---.+++<<<<<<<<<<<<<>>>>>>>>>>>>>>++.--<<<<<<<<<<<<<<>>>>.<<<<>>>>>>>>>>>+.-<<<<<<<<<<<>>>>>>>>>>>>>>-.+<<<<<<<<<<<<<<>>>>>>>>>>>>>----.++++<<<<<<<<<<<<<>>>>>>>>>>>>+.-<<<<<<<<<<<<>>>>+.-<<<<.
HAI 1.2
CAN HAS STDIO?
I HAS A GREETING ITZ "HAI, FOREM MEMBERZ !"
VISIBLE GREETING
KTHXBYE
-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.[->+++<]>+.+++++++++++..[-->+<]>--------.++[--->++<]>.++++[->++<]>+.[----->+<]>-.-.+[---->+<]>+++.++[->+++<]>.-[--->+<]>--.-------.-[->+++++<]>-.---[->++++<]>.-----.[--->+<]>-----.[->+++<]>++.+++.--[--->+<]>-.-[--->++<]>--.---.+++++++++++++.-------------.[->+++<]>-.++[--->++<]>.>-[--->+<]>-.+++++++++++++.++++++++++.------.--[--->+<]>-.+[->+++<]>.--.--[--->+<]>---.-------------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.[->+++<]>+.+++++++++++..[-->+<]>--------.
Is this a coding language???Code:-[------->+<]>-.-[->+++++<]>++.+++++++..+++.[--->+<]>-----.[->+++<]>+.+++++++++++..[-->+<]>--------.++[--->++<]>.++++[->++<]>+.[----->+<]>-.-.+[---->+<]>+++.++[->+++<]>.-[--->+<]>--.-------.-[->+++++<]>-.---[->++++<]>.-----.[--->+<]>-----.[->+++<]>++.+++.--[--->+<]>-.-[--->++<]>--.---.+++++++++++++.-------------.[->+++<]>-.++[--->++<]>.>-[--->+<]>-.+++++++++++++.++++++++++.------.--[--->+<]>-.+[->+++<]>.--.--[--->+<]>---.-------------.--[--->+<]>-.--[->++++<]>+.----------.++++++.-[---->+<]>+++.[->+++<]>+.+++++++++++..[-->+<]>--------.
Code Forum is a community platform where coding enthusiasts can connect with other developers, engage in discussions, ask for help, and share their knowledge with a supportive community. It's a perfect place to improve your coding skills and to find a community of like-minded individuals who share your passion for coding.
We use essential cookies to make this site work, and optional cookies to enhance your experience.