فا

Explore.explore_title_paged

Public users codes are in this section. You can use these codes for learning or as a basic base for your code.

بین درسی

public class MyClass {
  public static void main(String[] args) {
    String txt = "Please locate wh ...
See and Run

بین درسی

public class MyClass {
  public static void main(String[] args) {
    String txt = "Hello World";
   ...
See and Run

انواع مقادیر False در پایتون

print(bool(False))
print(bool(None))
print(bool(0))
print(bool(""))
print(bool(()))
print(bool([]))
 ...
See and Run

بین درسی

dorus = ["riazi", "adabiat", "varzesh", "farsi", "zist", "tarikh", "joghrafia"]

nomarat = {}

for d ...
See and Run

برنامه کامل محاسبه معدل (با لیست دروس) در پایتون

dorus = ["riazi", "adabiat", "varzesh", "farsi", "zist", "tarikh", "joghrafia"]

nomarat = []

for d ...
See and Run

دستورات شرطی if-else و ترکیب توابع در پایتون

avg = int(input("معدل خود را وارد کنید:\n "))
if avg > 10:
  print("شما قبول شده اید")
else:
  print ...
See and Run

ساختار دستور شرطی if ساده در پایتون

avg = input("معدل خود را وارد کنید: \n")
avg = int(avg)
if avg > 10:
  print("شما قبول شده اید") ...
See and Run

تبدیل نوع داده (Type Casting) از رشته به عدد در پایتون

age = input("Input your age:\n") #30
age = int(age)
print(age * 2) #60 ...
See and Run

آموزش دریافت ورودی و چاپ خروجی ساده در پایتون

username = input("Enter username:\n")
print("Username is: ", username) ...
See and Run

بین درسی

<?php
class ClassName {
  public static function staticMethod() {
    echo "Hello World!";
  }
}

Cl ...
See and Run

بین درسی

<?php
$cars = array (
   array("Volvo",22,18),
   array("BMW",15,13),
   array("Saab",5,2),
   array ...
See and Run

بین درسی

<?php 
$txt = "Hello world!";
$x = 5;
$y = 10.5;

echo $txt."\n";
echo $x."\n";
echo $y."\n";
?> ...
See and Run

code 1011

def inputlist (x , n ):
    for i in range (n):
        x.append(int ( input ("list"+str(i)+"=")))
  ...
See and Run

code 693

import operator
action = {
    "+": operator.add,
    "-": operator.sub,
    "/": operator.truediv,
 ...
See and Run

code 600

import string, random



while True:

     hesam = int(input("لطفا طول رمز عبور خود را وارد کنید: ") ...
See and Run

code 541

number = int(input("please Enter integer number: "))
factorial = 1
for i in range(1, number+1):
     ...
See and Run

به‌دست آوردن 10001-اُمین عدد اول (یا مثلاً n-اُمین) با پایتون

def isPrime(n):
    if n < 2: return "Neither prime, nor composite"
    for i in range(2, int(n**0 ...
See and Run

jj

txt = "My name is Ståle"

x = txt.encode()

print(x) ...
See and Run

code 448

#دوستان این کد برای تا انداختنه
#وارد برنامه میشی
#تاس میندازه و میپرسه که دوباره تاس بندازم
#با کلم ...
See and Run

code 444

thisset = {"apple", "banana", "cherry"}

y = thisset.pop()

print(x)

print(thisset) ...
See and Run

code 322

print('ساخته شده توسط حسام الدین')
from itertools import chain, permutations

characters = [
"ا",
"ب ...
See and Run

code 272

#include <iostream>

using namespace std;
int main() {
  // This array can store upto 12 elements (2 ...
See and Run

محاسبه وتر مثلث قائم الزاویه

<?php
function hypotenuse($a, $b){
    $c = sqrt(pow($a, 2) + pow($b, 2));
    return $c;
}

echo hy ...
See and Run

حل جدول آمیرزا با پایتون

from itertools import chain, permutations

characters = [
'ب',
'ا',
'د',
'ر',
'گ',
'ی'
]
print("سه ح ...
See and Run