fa
Feedback
Software programing

Software programing

رفتن به کانال در Telegram

This is a channel which gives tutorial on different programming languages, android tips and tricks best apps etc...

نمایش بیشتر
1 471
مشترکین
اطلاعاتی وجود ندارد24 ساعت
اطلاعاتی وجود ندارد7 روز
اطلاعاتی وجود ندارد30 روز
آرشیو پست ها
Best practices ✨ Write a Python program to print the calendar of a given month and year. 📔 Note: Use 'calendar' module. 💎 Python calendar.month(theyear, themonth, w=0, l=0): The function returns a month’s calendar in a multi-line string using the formatmonth() of the TextCalendar class. 'l' specifies the number of lines that each week will use.

✳️Top 10 free software download website✳️ 1, 👉Download.com - Softwares for all platforms like windows, mac, linux & mobile application - over 100,000freeware & shareware 2, 👉FileHippo.com - it has money softwares including it's own update checker 3, 👉zdnet download -is web largest library of software downloads for all platforms 5, 👉softpedia.com - software is arranged by hirearchially based on user rating, last updated 6, 👉Tucows.com - has also web based softwares and apps 7, 👉Freewarefiles.com - have over 15800 freeware programs 8, 👉snapfiles.com - it has huge software collection 9, 👉filecluster.com - they have many updated softwares including wordpress theme & latest news about software 10, 👉geardownload.com - it have many softwares with capabilities of checking the softwares have malware? @software_programming1 @software_programming1 @software_programming1

Did you know this link http://thejoby.com/?code=25033

as you see we used 'if' and 'else' to validate and out put the string. The if part contains condition of statement.so in the above example it will only give qualification message only if the variable a is greater than 18. The else part contains what codes to execute if the first code in the if part is false.for example if the age of the user was 16. The next example is with C language.we will continue next time.

#Basic_programming #conditional_statements Conditionals are a way of executing certain code in agiven condition. For example in human language a teacher may say "I will give grade 'A' for who have total mark above 90 else I will give 'B'." I hope The above example gave you hint. Let me show you with real example with two d/t programming languages. javascript: var a=prompt("inter your name") if(a>18){ alert("you are qualified to drive"); } else{ alert ("you are not qualified for driving "); } The example above will ask a user for age.and then compute it to tell if a iser is qualified for driving

#26 pytricks 🔱Python build in assert function🔱 🔰 What is this used for? Helps to automatically detect error in your python program. This will make your program more readable and easier to debug. 🔸Python assert statement is debuging aid that checks python program flow. 🔸Once the assert statement is true nothing heppans but condition is false program raise an AssertionError exception . 🔸Impossible conditions are check by assert statement. For example , def check( product , price): Price = int(product ['price'] * (1.0 - discount )) assert 0 <= price <= product ['price'] return price shos = { 'name' : 'shoes', 'price' : 14900} >>>check(shoes , 0.25) >>>11175 🔸So that , In above example the shoes price is never less than zero. But any condition that not satisfy or less than zero the AssertionError is raised. 🔸Now , you are probably wondering why I didn't just use an if statement and an exception in the previous example... 🔸You see the proper use of assertion is to inform developers about unrecoverable errors in a program. 🔸Assertion are not intended to single expected error conditions, like file not found error , where user can take coorective actions or just try again. Syntex for assert statement : assert_stmt ::= "assert" expression1 ["," , expression2] 🔸Where expression1 is the condition we test, and the optional expression2 is an error message that displays where assertion false. 🔰There are common pitfalls with using asserts in Python 1. Don't use assert for data visualization - assertion is globally disabled in interpreter settings. 2. Assert that never fail - it's surprisingly easy to accidentally write Python program assert statement that's always evaluate to true. For example , assert ( 1==2 , 'this should fail' ) 👉 It's a great skill to learn that will help bring your python knowlage to the next level and and you more well rounded python programmer.

"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." - Martin Fowler

Computer Game Development ወይም የኮምፒዩተር ጨዋታ ስራ የምንለው ምንድን ነው ፤ ጨዋታ/ጌም እራሱ ምንድነው? እንዴትስ ነው የሚሰራው? Join በማለት ተጠቃሚ ይሁኑ

delicious digest 🔰GitHub Ultimate: Master Git and GitHub – Beginner to Expert🔰 Ⓜ️ Go from complete novice to expert in Git
delicious digest 🔰GitHub Ultimate: Master Git and GitHub – Beginner to Expert🔰 Ⓜ️ Go from complete novice to expert in Git and GitHub using step-by-step, no-assumptions learning. ◾️Udemy Link - bit.ly/1UPiZcr ◾️Download - bit.ly/2FrtUss ◾️Torrent Link - bit.ly/2Y5BGj8

#25 : python Lambda functions 👉The lambda keyword in Python provides a shortcut for declaring small and anonymous functions: >>> add = lambda x, y: x + y >>> add(5, 3) output : 8 👉You could declare the same add() function with the def keyword: >>> def add(x, y): ... return x + y >>> add(5, 3) output : 8 👉So what's the big fuss about? 👉Lambdas are *function expressions*: >>> (lambda x, y: x + y)(5, 3) 8 👉 Lambda functions are single-expression functions that are not necessarily bound to a name (they can be anonymous). 👉Lambda functions can't use regular Python statements and always include and implicit return statement.

#Basics_of_programming #operators This is the third post continued under basics of programming. There are 5 common operators in software programming languages.(+,- ,*,/,%) This operators are familiar for most of you. But you may want some details about the modulus(%) operator. #modulus operator is the operator which return us the remainder of a division. Example: var a=17 var b=8 var c=a/b document.write(%c) Out put: 1 because the remainder when we divide 17 by 8 is 1. remember * is multiplication We will next time...

#24 python : working with IP address in Python 3 👉Python 3 has a std lib module for working with IP addresses: >>> import ipaddress >>>ipaddress.ip_address('192.168.1.2') #IPv4Address('192.168.1.2') >>>ipaddress.ip_address('2001:af3::')# IPv6Address('2001:af3::') Learn more here: https://docs.python.org/3/library/ipaddress.html

#23 python: more on list comprehensions #4 conditions example: checking for even numbers nums = [1, 2, 3, 4] [i for i in nums if i%2 ==0] >>> [2, 4] #5 using range [i for i in range(4)] >>> [0, 1, 2, 3]

#data_type This is a tutorial that has continued from #variables. As the name indicates data type means types of data.many programming languages may have common data types. For example "numbers" are one data type. Example: C programming has 4 data types.they are 1)int 2)double 3)float 4)char Int is defines integer (in this case whole numbers) 2)float defines decimals or fractions 3)double defines double-precision floating point value. 4)char defines single character.(could be letter or symbol) in some languages like C you may have to define your data types first while in other languages you don't have to or even the language itself doesn't contain data type indentifiers like Python. For python there 5 data types፦ Numbers String List Tuple Dictionary We will continue next time....

#22 python: list comprehensions list comprehensions are a great way to build lists #1 exact same alphs = ['a', 'b', 'c'] y = [a for a in alphs] print(y) >>> ['a', 'b', 'c'] #2 doing operations nums = [1, 2, 3] y = [n+1 for n in nums] print(y) >>> [2, 3, 4] #3 multiple loops nums1 = [1, 2] nums2 = [2, 3] print([i for i in nums1 for j in nums2]) >>> [1, 1, 2, 2]

#21 python: anonymous functions anonymous functions are functions that are anonymous meaning without a name 🗝 with name def plus_one(x): return x+1 print(plus_one(2)) >>> 3 🗝 without name print((lambda x: x+1)(2)) >>> 3 x+1 is what to return x is the parameter 2 is the argument

The first thing to start up with is #variable What is variable? Variable is where you save or store certain data &/or certain instructions. Example: var a="hello world"; The above variable stored a #string hello world. Note:string is like a text which is usually written alphabetically. But sometimes a number or any other thing can be considered as string if they within the " " in many programming language. In the example above var............................declares or initiate variable(create the variable.) a.........................is the name for the variable created.but there are reserved words which cannot be used as a variable depending on the language we use. Why we need a variable? we use a variable to store a value in it and then call it when we want it. Example: var a="hello world"; document.write(a); Now the above code will show hello world after it have been #compiled. Out put of the code: hello world. Note: #compiling is to change ur code in a way that ur computer can understand it with a software made for the purpose. I think that is enough for today about the basics for variable.we will continue the next time with data type. But before that the language I used to illustrate is JavaScript which is easiest one.

Software programing: For beginner programmers: Before starting to learn #python you need to have some key concepts like: ♠what are variables ♠what are functions ♠objects,methods and some more. If any beginner programmer here wants to for their short and brief explanation we will post it soon. at least if 20 people agree

#20 python: overview of editors 📑 what is an ide? IDE stands for Integrated Development Environment. They provide code execution at the click of a button, code prediction, breakpoints, functions profiling, memory inspection etc 📋 IDLE comes by default with python. nice, shell included. old looks and not so many features 📋 Sublime Text light, stylish, but not an ide, just an editor. can be made more powerful by extentions. codes can be directly executed by ctrl+b 📋 Wing IDE an ide that does it's job 📋 PyCharm the best IDE par excellence. can be slow on certain pc. has a paid version. 📋 Spyder the IDE of anaconda, written in py. the main advantage of it is that it includes all anaconda package by default and has a jupyter-like shell 📋 Jupyter has web and desktop versions. an advanced IDLE, provides inline charts, markdown support. the perfect scheme to share tutorials

#19 python: imports let us say you have a file named output.py in it there is a function def print_name(x): print(x) now you create another file named like main.py in main.py you write from output import print_name print_name("name") running it will give >>> name 👉 import importing allows us to use codes found in other files 👉 why useful? that is useful to separate code into files thereby also allowing easy code sharing and inclusion in projects. a python file is called a module